Implementing external authentication in ASP.NET Core applications
Many applications these days have implemented external authentication on their websites. This enables users to use their existing login credentials of Twitter, Facebook, Hotmail, or any other and register on a website. This type of authentication provides several benefits to the user registering on a website. It facilitates users to use their existing credentials and avoid themselves from going through a lengthy registration process and remembering the credentials they have created.
ASP.NET Core provides a very easy and quick solution to configure external authentication using OAuth 2.0.
OAuth architecture and basic components are explained in the following section:
Configuring external authentication in ASP.NET Core
In this section, we will implement external authentication with a Facebook authentication provider.
Creating a web application project
We can start by creating a web application ASP.NET Core project and selecting individual...