Securing your application using OAuth 2.0, OpenID Connect, and MSAL
In the previous sections of this chapter, we covered the different frameworks for authenticating your applications in depth. In this section, we are going to put this learning into practice. We are going to build an ASP.NET Core web application that is going to use OAuth 2.0, OpenID Connect, and MSAL to authenticate a user against Azure AD and call the Microsoft Graph API.
This demo is going to be divided into two parts. The first part is going to cover the OAuth 2.0, OpenID Connect, and MSAL aspects. The second part is going to focus on the Graph API. The second part is going to be covered in Chapter 6, Building Secure Services Using the Microsoft Graph API.
In the first section of this demo, we are going to register the necessary applications in Azure AD and set the required permissions. However, we are going to do this manually. Since we have already covered this part in previous chapters, there is...