ASP. NET Identity V2

Source: Internet
Author: User

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.

    1. A set of ASP. NET Identity that can be used for Web form, MVC, Web pages, Web API, etc. under ASP.
    2. and simple membership Provider, can be flexibly customized user information, also using EF Code first to complete the data operation
    3. Fully customizable data structures
    4. Support for Unit tests
    5. Integration with role provider
    6. Support for Clamis-oriented certifications
    7. Support for Social account login
    8. OWIN Integration
    9. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.