Skip to content

A template which can be used when building Blazor WebAssembly apps using authentication with MSAL, authorization with Azure AD roles or groups and a backend API with shared claims.

License

Notifications You must be signed in to change notification settings

JohnRoos/Blazor-MSAL-API-template

Repository files navigation

Blazor-MSAL-API-template

A template which can be used when building Blazor WebAssembly apps using authentication with MSAL, authorization with Azure AD roles or groups and a backend API with shared claims.

Configuration

Settings

Change the settings in wwwroot\appsettings.json. Here you can set your tenant id, client id and paths to your backend API.

Register app in Azure Active Directory

You need to add a registered app which the app will use when authenticating users. The registered app need at least one custom app role called "Admin" which users need to be a member of to see the samples in this template. The registered app also need delegated permissions to use the backend API.

User access to API

Users need sufficient access to the backend API since the registered app should have delegated permissions.

More later

When I have time I might add more details on how to set this up.

Read more

When creating this template I have used several good sources. Here are a few:

About

A template which can be used when building Blazor WebAssembly apps using authentication with MSAL, authorization with Azure AD roles or groups and a backend API with shared claims.

Topics

Resources

License

Stars

Watchers

Forks