BlazorAuthenticationChallengeHandler 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
处理 Blazor 服务器组件的身份验证质询。 提供增量许可和条件访问方案的功能。
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)
参数
- navigation
- NavigationManager
- authenticationStateProvider
- AuthenticationStateProvider
- configuration
- IConfiguration
注解
此处理程序专为 Blazor 服务器方案设计,需要从组件代码启动身份验证质询。 它支持增量许可(请求其他范围)和条件访问(处理逐步身份验证)。 结合这一点 MapLoginAndLogout(IEndpointRouteBuilder) ,在 Blazor Server 应用程序中启用无缝身份验证流。