Your official information source from the .NET Web Development and Tools group at Microsoft.
ASP.NET Identity is the new membership system for building ASP.NET web applications. ASP.NET Identity allows you to add login features to your application and makes it easy to customize data about the logged in user.
[Update] Please visit ASP.NET Identity for getting the latest information about ASP.NET Identity project and learning more on how to get started and migrate from earlier membership systems.
Following are some of the feature of the ASP.NET Identity system
ASP.NET Identity is used by ASP.NET Web Forms, MVC and SPA templates in Visual Studio 2013. it is also available as Nuget packages on the Nuget gallery
The following video video(mark 55min) http://channel9.msdn.com/Events/TechEd/NorthAmerica/2013/DEV-B314#fbid=fEhPNbmXE9- gives you a sneak peak into the features.
You can download a sample from https://github.com/rustd/AspnetIdentitySample. This is based on the ASP.NET MVC template that shipped with ASP.NET and Web Tools 2013 Preview Refresh (Supports English version of VS2013 Preview only) Once you have this Preview Refresh installed you can do the same for ASP.NET Web Forms and SPA applications.
Please do stay tuned to this blog for upcoming posts where I will dive into the various other features in this system.
How can I get a list of all users to create an admin dashboard?
@LeusKapus: As of now there is no API that returns IQueryable type with list of either users or roles. For the current bits you need to use the DBContext class directly to get the list of users
@suhasbj Why there is no answer about the azure storage implementation? You don't have plans, time, is there a reason that it's not a good idea?
@Luiz Bicalho: I do agree that the Azure storage implementation is a good idea. I got in touch with the crew and there will be a sample for this which we will release as a Nuget package which the users can then build upon.
Understanding that you can't reference future release dates I'm wondering how things synch up now that VS2013 RTM _is released. Should we consider MVC5 as in RTM state? Is it Open Sourced? Any state changes to this version of the membership system (including docs) given the RTM state?
@am.steve: we released VS2013 RC. When The RTM version will be released, it will have the MVC5 RTM version. There are a couple of changes in the Identity API from RC to RTM but that will be fully documented in the RTM release. Majority of our web stack such as MVC, Web API, Web Pages, SignalR is already sourced and you can get more information http://www.asp.net/open-source
In VS 2013 I create a web Forms with Individual User Accounts and I use ASP.NET Identity , my Login works and I change web config as
<authentication mode="Forms" >
<forms loginUrl="/Account/Login" defaultUrl="default.aspx" protection="All"></forms>
When I host my project in IIS ,the problem is that it works at first, after I sign off and login it works correctly , but when I close ie and open the link again the login page does not direct to default page .
User Name and Password is working because when I enter a incorrect one I get the "try again" message.
I restart the iis the login works and after I enter username and password and press login the default page appears .
If you come across this page for more information about ASP.NET Identity, this latest video (October 30, 2014) may useful to you:
Great functionality! Has a target date for the release of ASP.NET Identity?
What if I want to create a many to many or one to many relationship from the user account to some other table in my custom database? Let's say, one user can attend many courses and one course can be teached by only one user.
Should I somehow copy everything in the same database?
The usual Microshit b*ll*cks with totally unusable code and no working examples. Spotty kids rule again as usual ...
Hi, will you update these examples with current version please.
Also, can we add dynamic roles to controllers.
Did anyone proof-read this stuff?!
2nd sentence under bulleted item "Claims Based" reads "There is a Claims". This appears to be an incomplete sentence, at best. What the hell is that supposed to mean?