Skip to content
This repository was archived by the owner on Feb 16, 2024. It is now read-only.

BlazoradeMsalOptions

Mika Berglund edited this page Sep 13, 2022 · 3 revisions

BlazoradeMsalOptions Class

The BlazoradeMsalOptions class is used to specify options for Blazorade MSAL when configuring it for your application. It exposes the following properties.

Name Type Default Description
ClientId string The client ID of the application that is configured.
TenantId string The tenant ID of the Azure AD tenant in which the application is registered.
EndpointId string The name or ID of the endpoint used when signing in. When using Azure AD B2C, this is the ID of the login policy you want your users to use when signing in.
Authority string The full authority URI representing Identity Provider that will take care of authenticating your users. You typically don't need to configure this option as long as you have the other options correctly specified.
AuthorityType AuthorityType AAD The type of authority (Identity Provider) to use.
MsalVersion string 2.22.0 The MSAL Browser version to use in the application. The BlazoradeMsalService loads the MSAL script from the alcdn.msftauth.net CDN location.
InteractiveLoginMode InteractiveLoginMode Dialog Determines how interactive login is performed, in case the requested tokens cannot be acquired without user interaction.
TokenCacheScope TokenCacheScope Session Defines how tokens are cached.
DefaultScopes IEnumerable<string> ["openid","profile"] The scopes that will be used by default when acquiring tokens, if no scopes are explicitly specified. The scopes openid and profile are configured by default.
RedirectUrl string The URL that the user will be redirected back to after successfully logging in. This is used only if InteractiveLoginMode is set to Redirect. Can be either a relative or absolute URL. Relative URLs are recommended. The URL specified here must also be configured as redirect URI in the application registration in Azure AD.
PostLogoutUrl string The URL in the application that the user should be redirected back to after logging out. If not specified, the user will not be redirected back to the application after loggin out. This URL is used with all interactive login modes.

For more information on how this class is used, see the getting started section.

Clone this wiki locally