Creating the claims viewer project
The Blazor WebAssembly application that we are going to build in this chapter is a claims viewer. First, we will add the application to Azure AD. After we have added the application, we will add a group and a user to Azure AD. We will add the required NuGet packages and configure the project to use MSAL authentication. Next, we will add components for authentication and login display. We will also add the following routable components: Secure and WhoAmI. Finally, we will add and test an authentication policy.
The following is a screenshot of the WhoAmI component from the completed application:
Figure 10.2: The WhoAmI component from Claims Viewer
The build time for this project is approximately 60 minutes.
Project overview
The ClaimsViewer
project will be created by using Microsoft’s Blazor WebAssembly App Empty project template to create an empty Blazor WebAssembly project. After we have created our project, we will...