Using Azure Active Directory to Secure a Blazor WebAssembly Application
Security is important. Most applications require each user to provide their credentials before they can access all the functionality supplied by the application. Managing usernames, passwords, roles, and groups can be tedious and complicated. Using Azure Active Directory (Azure AD) makes it easy. Azure AD is an identity provider in the cloud.
The project that we create in this chapter will allow the user to view the claims provided by the token that is returned from Azure AD after the user is authenticated by Azure AD. We will be using the Microsoft Authentication Library (MSAL) to acquire JSON Web Tokens (JWTs) from Azure AD. We will be using Open ID Connect (OIDC) endpoints to authenticate users. OIDC is a simple identity layer built on the industry standard OAuth 2.0 protocol. It allows clients to verify the identity of a user based on the authentication performed by an identity provider, such as Duende...