Choosing an authentication mode

The authentication alternatives made available by ASP.NET Core are basically the same supported by the previous versions of ASP.NET:

  • No authentication: If we don't feel like implementing anything or if we want to use (or develop) something not relying upon the ASP.NET Identity system
  • Individual user accounts: When we want to set up an internal database to store user data using the standard ASP.NET Identity interface
  • Azure Active Directory: Using a token-based set of API calls handled by the Azure AD Authentication Library (ADAL)
  • Windows authentication: Viable for local-scope applications only

In Chapter 1, Getting Ready, when we created our project, we made the choice to go with an empty project featuring no authentication. That was because we didn't want Visual Studio to add AspNetCore.Identity support right from the start. Now that we chose to use it, we need to manually add the proper packages.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset