Identity

ASP.NET Core Identity

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.

Database

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:

  1. 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.
  2. 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.
  3. Create Profile management for registered users in the app.
  4. 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.
  5. 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:

  1. How to Setup and Configure ASP.NET Core Identity
  2. How to Create, Read, Update & Delete users in ASP.NET Core Identity
  3. Username, Email & Password Policy in ASP.NET Core Identity
  4. How to do Authentication of Users in ASP.NET Core Identity
  5. How to work with Roles in ASP.NET Core Identity
  6. How to add Custom User Properties in ASP.NET Core Identity
  7. How to work with Claims in ASP.NET Core Identity
  8. How to work with Policies in ASP.NET Core Identity
  9. How to integrate Google login feature in ASP.NET Core Identity
  10. Two-Factor Authentication in ASP.NET Core Identity
  11. How to perform Email Confirmation of Users in ASP.NET Core Identity
  12. Creating Password Reset feature in ASP.NET Core Identity
  13. User Lockout in ASP.NET Core Identity