Microsoft.AspNetCore.Components.WebAssembly.Authentication 命名空间

提供用于通过身份验证保护 Blazor WebAssembly 应用的类型。

AccessToken

表示给定用户和范围的访问令牌。

AccessTokenNotAvailableException

Exception 实例无法预配访问令牌时 AuthorizationMessageHandler 引发的 。

AccessTokenRequestOptions

表示用于代表用户预配访问令牌的选项。

AccessTokenResult

表示尝试预配访问令牌的结果。

AccountClaimsPrincipalFactory<TAccount>

RemoteUserAccount 转换为 ClaimsPrincipal

ApiAuthorizationProviderOptions

表示依赖于服务器进行配置的应用程序的选项。

AuthorizationMessageHandler

DelegatingHandler 访问令牌附加到传出 HttpResponseMessage 实例的 。 仅当请求 URI 位于使用 ConfigureHandler(IEnumerable<String>, IEnumerable<String>, String)配置的基地址之一内时,才会添加访问令牌。

BaseAddressAuthorizationMessageHandler

DelegatingHandler 访问令牌附加到传出 HttpResponseMessage 实例的 。 仅当请求 URI 位于应用程序的基 URI 内时,才会添加访问令牌。

InteractiveRequestOptions

表示对标识提供者的请求,用于登录或预配令牌。

NavigationManagerExtensions

NavigationManager扩展。

OidcProviderOptions

表示用于配置使用标准 OpenID Connect (OIDC) 流时使用的 oidc-client.js 库的选项。

RemoteAuthenticationActions

表示可由 执行的 RemoteAuthenticatorViewCore<TAuthenticationState>身份验证操作的列表。

RemoteAuthenticationApplicationPathsOptions

表示应用程序用于身份验证操作的路径的选项。 这些路径相对于基。

RemoteAuthenticationContext<TRemoteAuthenticationState>

表示身份验证操作期间的上下文。

RemoteAuthenticationDefaults

表示跨库使用的不同可配置值的默认值。

RemoteAuthenticationOptions<TRemoteAuthenticationProviderOptions>

用于远程身份验证的选项。

RemoteAuthenticationResult<TRemoteAuthenticationState>

表示身份验证操作的结果。

RemoteAuthenticationService<TRemoteAuthenticationState,TAccount,TProviderOptions>

使用 JS 互操作对用户进行身份验证的默认实现 IRemoteAuthenticationService<TRemoteAuthenticationState>

RemoteAuthenticationState

表示在身份验证操作期间要保留的最小身份验证状态量。

RemoteAuthenticationUserOptions

表示在为用户配置 ClaimsPrincipal 时要使用的选项。

RemoteAuthenticatorView

一个 , RemoteAuthenticatorViewCore<TAuthenticationState> 它使用 RemoteAuthenticationState 作为在身份验证操作中持久保存的状态。

RemoteAuthenticatorViewCore<TAuthenticationState>

在应用程序中处理远程身份验证操作的组件。

RemoteUserAccount

用户帐户。

SignOutSessionStateManager

处理注销终结点的 CSRF 保护。

接口

IAccessTokenProvider

表示能够为应用程序预配访问令牌的服务的协定。

IRemoteAuthenticationService<TRemoteAuthenticationState>

表示对 Blazor WebAssembly 应用程序执行身份验证操作的服务的协定。

枚举

AccessTokenResultStatus

表示尝试获取访问令牌的可能结果。

InteractionType

身份验证请求的类型。

RemoteAuthenticationStatus

表示身份验证操作的状态。

注解

有关在 Blazor WebAssembly 应用中启用身份验证的详细信息,请参阅使用身份验证库保护 ASP.NET Core Blazor WebAssembly 独立应用