BlazorAuthenticationChallengeHandler Konstruktor

Definition

Hanterar autentiseringsutmaningar för Blazor Server-komponenter. Tillhandahåller funktioner för scenarier med inkrementellt medgivande och villkorsstyrd åtkomst.

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)

Parametrar

navigation
NavigationManager
authenticationStateProvider
AuthenticationStateProvider
configuration
IConfiguration

Kommentarer

Den här hanteraren är särskilt utformad för Blazor Server-scenarier där autentiseringsutmaningar måste initieras från komponentkoden. Den stöder inkrementellt medgivande (begära ytterligare omfång) och villkorsstyrd åtkomst (hantering av stegvis autentisering). Använd detta i kombination med MapLoginAndLogout(IEndpointRouteBuilder) för att aktivera sömlösa autentiseringsflöden i Blazor Server-program.

Gäller för