Summary
You should now be able to render the list of an authenticated user’s claims by delegating identity management to Azure AD.
In this chapter, we learned the difference between authentication and authorization. We also learned how to work with the authentication components. Finally, we learned how to control the user interface by using the Authorize
attribute and the AuthorizeView
component.
After that, we used the Blazor WebAssembly App Empty project template to create a new project. Next, we used the Azure Portal to configure our Azure AD tenant to add a new application. Then we added a group to our new application and added a user to that group. We used the Client ID and the Tenant ID from Azure AD to update the appsettings.json
file in our project. We added the required NuGet packages and finished configuring our application to use authentication. We added the Authentication
, LoginDisplay
, Secure
, and WhoAmI
components. Finally, we used a policy to restrict...