Using ASP.NET Core Identity for authentication and authorization

Security, in general, is divided into two mechanisms, which are as follows:

  • Authentication
  • Authorization