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

提供類型來保護 Blazor WebAssembly 應用程式與驗證。

類別

AccessToken

表示指定使用者和範圍的存取令牌。

AccessTokenNotAvailableException

AuthorizationMessageHandler 實例無法布建存取令牌時,所擲回的 Exception

AccessTokenRequestOptions

代表使用者布建存取令牌的選項。

AccessTokenResult

表示嘗試布建存取令牌的結果。

AccountClaimsPrincipalFactory<TAccount>

RemoteUserAccount 轉換成 ClaimsPrincipal

ApiAuthorizationProviderOptions

代表依賴伺服器進行組態的應用程式選項。

AuthenticationStateDeserializationOptions

提供使用 PersistentComponentState從伺服器設定用戶端 AuthenticationState 還原串行化的選項。

AuthorizationMessageHandler

將存取令牌附加至傳出 HttpResponseMessage 實例的 DelegatingHandler。 只有在要求 URI 位於使用 ConfigureHandler(IEnumerable<String>, IEnumerable<String>, String)設定的其中一個基地址內時,才會新增存取令牌。

BaseAddressAuthorizationMessageHandler

將存取令牌附加至傳出 HttpResponseMessage 實例的 DelegatingHandler。 只有在要求 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 Interop 驗證使用者之 IRemoteAuthenticationService<TRemoteAuthenticationState> 的預設實作。

RemoteAuthenticationState

表示驗證作業期間要保留的最小驗證狀態。

RemoteAuthenticationUserOptions

表示為用戶設定 ClaimsPrincipal 時要使用的選項。

RemoteAuthenticatorView

使用 RemoteAuthenticationState 作為跨驗證作業保存狀態的 RemoteAuthenticatorViewCore<TAuthenticationState>

RemoteAuthenticatorViewCore<TAuthenticationState>

處理應用程式中遠端驗證作業的元件。

RemoteUserAccount

用戶帳戶。

SignOutSessionStateManager

處理註銷端點的 CSRF 保護。

介面

IAccessTokenProvider

表示能夠布建應用程式存取令牌之服務的合約。

IRemoteAuthenticationService<TRemoteAuthenticationState>

表示執行 Blazor WebAssembly 應用程式驗證作業之服務的合約。

列舉

AccessTokenResultStatus

表示嘗試取得存取令牌的可能結果。

InteractionType

驗證要求的類型。

RemoteAuthenticationStatus

表示驗證作業的狀態。

備註

如需在 Blazor WebAssembly 應用程式中啟用驗證的詳細資訊,請參閱 使用驗證連結庫保護 ASP.NET Core Blazor WebAssembly 獨立應用程式的安全。