ASP.NET Core Identity is a .NET API through which we can make login functionality in our App. Besides this Identity helps to manage users, passwords, roles, policies, tokens, claims, profiles, authorization and authentication.
ASP.NET Core Identity typically uses a SQL Server database to store user names, passwords, and profile data. Alternatively, another persistent store like MongoDB, Azure Table Storage, can also be used for storage.
What we can do with ASP.NET core Identity
With ASP.NET Core Identity we can:
- Create Authentication feature i.e. Registration / Login / Logout features in our app. New users can register to the app and already registered users can login with their email address and password. Logged in users can log out from the app.
- Create Authorization feature i.e. we can define which areas of the app are accessible to which users and non-accessible to which users. We call this by the name of Role Management of users.
- Create Profile management for registered users in the app.
- Create Claims and Policies in the app. This is basically done to specify what users are allowed to do after authentication to the app and what requirements are needed for accessing a given area of the app.
- Create 3rd party login feature like login through Google, Facebook, Microsoft and Twitter.
Besides all this we can modify Identity features in the way we want. For example we can change the registration feature for new users to have a strong passwords, allowing only a given type of email address like gmail.com, add 2 factor authentication, password reset, user lockout and so on.
Start learning Identity from the below given articles:
- How to Setup and Configure ASP.NET Core Identity
- How to Create, Read, Update & Delete users in ASP.NET Core Identity
- Username, Email & Password Policy in ASP.NET Core Identity
- How to do Authentication of Users in ASP.NET Core Identity
- How to work with Roles in ASP.NET Core Identity
- How to add Custom User Properties in ASP.NET Core Identity
- How to work with Claims in ASP.NET Core Identity
- How to work with Policies in ASP.NET Core Identity
- How to integrate Google login feature in ASP.NET Core Identity
- Two-Factor Authentication in ASP.NET Core Identity
- How to perform Email Confirmation of Users in ASP.NET Core Identity
- Creating Password Reset feature in ASP.NET Core Identity
- User Lockout in ASP.NET Core Identity
Identity Tutorials with DEMOS and CODES for Download