10

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 ...

Get Blazor WebAssembly By Example - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.