Building a web app that authenticates users using Azure AD
In this section, we are going to learn how to build an ASP.NET Core application that is going to authenticate against Azure AD. We are going to implement the web apps that the sign in users scenario described in the previous section.
The demo follows this flow:
You can download the source code from this book's GitHub repository as a starting point. We are going to walk through the authentication code and use Visual Studio for this example.
We are also going to use the app registration that we created in the previous chapter. For this demonstration, we are going to use PacktCLIApp. After registering the application, we copied the app ID, app secret, and tenant ID to Notepad. We are going to use these values here. But before we can build the application, we need to register the redirect URIs and make sure that the right permissions have been set. We are going...