BlazorAuthenticationChallengeHandler Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Handles authentication challenges for Blazor Server components. Provides functionality for incremental consent and Conditional Access scenarios.
public BlazorAuthenticationChallengeHandler(Microsoft.AspNetCore.Components.NavigationManager navigation, Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider authenticationStateProvider, Microsoft.Extensions.Configuration.IConfiguration configuration);
new Microsoft.Identity.Web.BlazorAuthenticationChallengeHandler : Microsoft.AspNetCore.Components.NavigationManager * Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Identity.Web.BlazorAuthenticationChallengeHandler
Public Sub New (navigation As NavigationManager, authenticationStateProvider As AuthenticationStateProvider, configuration As IConfiguration)
Parameters
- navigation
- NavigationManager
- authenticationStateProvider
- AuthenticationStateProvider
- configuration
- IConfiguration
Remarks
This handler is designed specifically for Blazor Server scenarios where authentication challenges need to be initiated from component code. It supports incremental consent (requesting additional scopes) and Conditional Access (handling step-up authentication). Use this in combination with MapLoginAndLogout(IEndpointRouteBuilder) to enable seamless authentication flows in Blazor Server applications.