Microsoft.AspNet.Identity is a new membership framework introduced by Microsoft in MVC 5.0, The simplemembership (used in MVC 4) is different from the previous ASP. NET Legacy Membership and webpage.
Microsoft.AspNet.Identity is an implementation of the security standard within the Microsoft Open Owin standard. And in MVC 5, EntityFramework is used by default as the Microsoft.AspNet.Identity data store implementation.
The ASP. NET identity was introduced in the Framework4.5, and since the release of membership, Microsoft has received enough feedback from developers and business customers to help them create a new framework. Most of the features that he possesses are not sufficient in the preceding, and have the following features, see the Introduction to ASP.
- A set of ASP. NET Identity that can be used for Web form, MVC, Web pages, Web API, etc. under ASP.
- and simple membership Provider, can be flexibly customized user information, also using EF Code first to complete the data operation
- Fully customizable data structures
- Support for Unit tests
- Integration with role provider
- Support for Clamis-oriented certifications
- Support for Social account login
- OWIN Integration
- Fast iterations with NuGet publishing
The ASP. NET Identity V1 has a less than perfect place where the primary key must be a string type. The ASP. V2 can use any type as the primary key, and the interface has a generic parameter, TKey can be any type (int, GUID, and so on), and the following interfaces are added.
- Iuserlockoutstore<user, tkey>: Allows an account to be locked after attempting a certain number of failures
- Iuseremailstore<user, tkey>: Use email address to confirm (e.g. confirm by email)
- Iuserphonenumberstore<user, tkey>: Confirm with mobile phone number (e.g. via SMS)
- Iusertwofactorstore<user, tkey>: Enable 2 for secure authentication (e.g. via username/password and token via email or SMS), when the user's password may be unsafe, The system will send a security code to the user in the form of a text message or mail
SQL Database Project for ASP. NET Identity 2.0
Mvc5-asp.net Identity Login principle-claims-based authentication and Owin
MVC uses ASP. NET Identity 2.0 to implement user identity security-related functions, such as sending security codes via SMS or email, account lockout, etc.
ASP. NET Identity 2 new two-factor authentication, account lockout, security stamp feature and bug fixes
Change SQL Server database to MySQL