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>

的預設實 IRemoteAuthenticationService<TRemoteAuthenticationState> 作會使用 JS Interop 來驗證使用者。

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 獨立應用程式