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

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

類別

名稱 Description
AccessToken

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

AccessTokenNotAvailableException

Exception當實AuthorizationMessageHandler例無法提供存取權杖時,就會拋出這個

AccessTokenRequestOptions

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

AccessTokenResult

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

AccountClaimsPrincipalFactory<TAccount>

轉換為 RemoteUserAccountClaimsPrincipal。

ApiAuthorizationProviderOptions

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

AuthenticationStateDeserializationOptions

提供選項PersistentComponentState,可透過 。AuthenticationState

AuthorizationMessageHandler

A DelegatingHandler 將存取權杖附加到外出 HttpResponseMessage 實例。 只有當請求 URI 位於使用該 ConfigureHandler(IEnumerable<String>, IEnumerable<String>, String)配置的基底位址之一時,存取權杖才會被加入。

BaseAddressAuthorizationMessageHandler

A 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 互操作來驗證使用者。

RemoteAuthenticationState

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

RemoteAuthenticationUserOptions

代表在為使用者設定 ClaimsPrincipal 時可用的選項。

RemoteAuthenticatorView

一個 RemoteAuthenticatorViewCore<TAuthenticationState> 以 RemoteAuthenticationState 狀態為狀態,要在認證操作間持續存在。

RemoteAuthenticatorViewCore<TAuthenticationState>

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

RemoteUserAccount

用戶帳戶。

SignOutSessionStateManager

處理註銷端點的 CSRF 保護。

介面

名稱 Description
IAccessTokenProvider

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

IRemoteAuthenticationService<TRemoteAuthenticationState>

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

列舉

名稱 Description
AccessTokenResultStatus

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

InteractionType

驗證要求的類型。

RemoteAuthenticationStatus

表示驗證作業的狀態。

備註

欲了解更多關於在 Blazor WebAssembly 應用程式中啟用認證的資訊,請參閱「以認證函式庫保護 ASP.NET Core Blazor WebAssembly 獨立應用程式」。