Last post Feb 15, 2016 02:36 PM by santhoshje
Feb 08, 2016 12:21 PM|vijayd48|LINK
I have a project which was built with "AngularStart" template (ASP.NET MVC4 SPA Template with Angular JS,Web Api and Bootstrap)
My solution has the following projects
1. ASP.NET MVC with Angular JS (Web Application)
2. Business Models (Class library)
3. Business Layer (Class library)
4. Entity frame work Data layer (Class library)
These 4 projects are in one solution.
And apart this i have web api , which will be talking with the data base for all CRUD operations , web api reference is added in the business layer.
This is all about my project architecture.
Now i need to implement Authentication and Authorization for my Angular JS and web api both for Windows Authentication and forms authentication.
i.e when a user is connected to LAN network then we have to use his windows credentials for authentication and no login screen should be displayed.
and when he is connected to other network , login screen should be displayed.
I am using VS 2012 Ultimate and MVC5 is installed.
I have googled about this and found http://bitoftech.net/2014/06/09/angularjs-token-authentication-using-asp-net-web-api-2-owin-asp-net-identity/
but i dont want to use Asp.net identity, i am using Entity Framework.
Can any one help me on this.
Feb 10, 2016 04:25 AM|Li Wang|LINK
Thank you for your post.
but i dont want to use Asp.net identity,
Why don't you want use Identity? It is a very common components in ASP.NET. It is the best Authentication solution in asp.net until now.
If there are some limit on your database. We could custom storage providers for ASP.NET Identity.
Feb 11, 2016 10:29 AM|vijayd48|LINK
Thanks for your reply.
At this point, i could not use Asp.net Identity , this decision should be taken while designing the database.
Thanks for providing the ASP.NET Identity overview, with this i have learnt few things related to Identity .
By default, the ASP.NET Identity uses Entity Framework Code First to create the database.
But i am using Entity Framework DB First approach.
but the actual point is about the security for Angular JS application having web api as backend
can any one provide me any link for this.
Feb 15, 2016 02:36 PM|santhoshje|LINK
If don't want asp.net identity, try basic authentication. You can design authentication logic, based on your requirements.