Microsoft.AspNetCore.Authentication 命名空間

包含可啟用驗證支援的類型。 IAuthenticationService 是定義 5 個驗證動作的主要進入點:驗證 (取得要求的任何驗證資料) ,挑戰 (用於未經驗證的要求) 、當驗證要求) 應遭到拒絕時使用的 Forbid (,SignIn (建立 ClaimsPrincipal) 、SignOut (移除任何相關聯的資料) 。 概括而言,驗證是以配置的概念為基礎,其會對應至負責處理每個驗證動作的特定 IAuthenticationHandler 實例。

類別

AccessDeniedContext

提供處理常式提供者的拒絕存取失敗內容資訊。

AuthenticateResult

包含驗證呼叫的結果

AuthenticationBuilder

用來設定驗證

AuthenticationBuilderExtensions

擴充方法,可設定現有 API 的驗證與授權伺服器並存。

AuthenticationConfigurationProviderExtensions

的擴充方法。IAuthenticationConfigurationProvider

AuthenticationFailureException

一般驗證失敗。

AuthenticationFeature

用來擷取路徑資訊,以便在應用程式內正確計算重新導向。Map () 。

AuthenticationHandler<TOptions>

實作 的意見化抽象概念 IAuthenticationHandler

AuthenticationHandlerProvider

IAuthenticationHandlerProvider 的實作。

AuthenticationHttpContextExtensions

在 HttpCoNtext 上公開驗證的擴充方法。

AuthenticationMiddleware

執行驗證的中介軟體。

AuthenticationMiddleware<TOptions>

包含可啟用驗證支援的類型。 IAuthenticationService 是定義 5 個驗證動作的主要進入點:驗證 (取得要求的任何驗證資料) ,挑戰 (用於未經驗證的要求) 、當驗證要求) 應遭到拒絕時使用的 Forbid (,SignIn (建立 ClaimsPrincipal) 、SignOut (移除任何相關聯的資料) 。 概括而言,驗證是以配置的概念為基礎,其會對應至負責處理每個驗證動作的特定 IAuthenticationHandler 實例。

AuthenticationOptions

設定驗證的選項。

AuthenticationProperties

用來儲存驗證工作階段相關狀態值的字典。

AuthenticationScheme

AuthenticationSchemes 會將名稱指派給特定的 IAuthenticationHandler handlerType。

AuthenticationSchemeBuilder

用來建置 AuthenticationScheme s。

AuthenticationSchemeOptions

包含 所使用的 AuthenticationHandler<TOptions> 選項。

AuthenticationSchemeProvider

實作 IAuthenticationSchemeProvider

AuthenticationService

實作 IAuthenticationService

AuthenticationTicket

包含使用者識別資訊及其他驗證狀態。

AuthenticationToken

代表權杖的名稱/值。

AuthenticationTokenExtensions

將驗證權杖儲存在 中的 AuthenticationProperties 擴充方法。

AzureADAuthenticationBuilderExtensions

將 Azure Active Directory 驗證新增至應用程式的擴充方法。

AzureADB2CAuthenticationBuilderExtensions

將 Azure Active Directory B2C 驗證新增至應用程式的擴充方法。

Base64UrlTextEncoder

允許編碼和解碼 base-64 URL 編碼文字。

BaseContext

包含可啟用驗證支援的類型。 IAuthenticationService 是定義 5 個驗證動作的主要進入點:驗證 (取得要求的任何驗證資料) ,挑戰 (用於未經驗證的要求) 、當驗證要求) 應遭到拒絕時使用的 Forbid (,SignIn (建立 ClaimsPrincipal) 、SignOut (移除任何相關聯的資料) 。 概括而言,驗證是以配置的概念為基礎,其會對應至負責處理每個驗證動作的特定 IAuthenticationHandler 實例。

BaseContext<TOptions>

其他內容類別別所使用的基類。

BaseControlContext

包含可啟用驗證支援的類型。 IAuthenticationService 是定義 5 個驗證動作的主要進入點:驗證 (取得要求的任何驗證資料) ,挑戰 (用於未經驗證的要求) 、當驗證要求) 應遭到拒絕時使用的 Forbid (,SignIn (建立 ClaimsPrincipal) 、SignOut (移除任何相關聯的資料) 。 概括而言,驗證是以配置的概念為基礎,其會對應至負責處理每個驗證動作的特定 IAuthenticationHandler 實例。

ClaimActionCollectionMapExtensions

ClaimActionCollection 的擴充方法。

ClaimActionCollectionUniqueExtensions

ClaimActionCollection 的擴充方法。

ClaimsTransformationContext

包含可啟用驗證支援的類型。 IAuthenticationService 是定義 5 個驗證動作的主要進入點:驗證 (取得要求的任何驗證資料) ,挑戰 (用於未經驗證的要求) 、當驗證要求) 應遭到拒絕時使用的 Forbid (,SignIn (建立 ClaimsPrincipal) 、SignOut (移除任何相關聯的資料) 。 概括而言,驗證是以配置的概念為基礎,其會對應至負責處理每個驗證動作的特定 IAuthenticationHandler 實例。

ClaimsTransformationHandler

將 ClaimsTransformation 套用至驗證的處理常式

ClaimsTransformationMiddleware

包含可啟用驗證支援的類型。 IAuthenticationService 是定義 5 個驗證動作的主要進入點:驗證 (取得要求的任何驗證資料) ,挑戰 (用於未經驗證的要求) 、當驗證要求) 應遭到拒絕時使用的 Forbid (,SignIn (建立 ClaimsPrincipal) 、SignOut (移除任何相關聯的資料) 。 概括而言,驗證是以配置的概念為基礎,其會對應至負責處理每個驗證動作的特定 IAuthenticationHandler 實例。

ClaimsTransformer

包含可啟用驗證支援的類型。 IAuthenticationService 是定義 5 個驗證動作的主要進入點:驗證 (取得要求的任何驗證資料) ,挑戰 (用於未經驗證的要求) 、當驗證要求) 應遭到拒絕時使用的 Forbid (,SignIn (建立 ClaimsPrincipal) 、SignOut (移除任何相關聯的資料) 。 概括而言,驗證是以配置的概念為基礎,其會對應至負責處理每個驗證動作的特定 IAuthenticationHandler 實例。

FailureContext

提供中介軟體提供者的失敗內容資訊。

HandleRequestContext<TOptions>

處理驗證要求的基底內容類型。

HandleRequestResult

包含驗證呼叫的結果

JsonDocumentAuthExtensions

的驗證延伸模組 JsonDocument

NoopClaimsTransformation

預設宣告轉換是無作業。

PolicySchemeHandler

PolicySchemes 可用來將驗證方法重新導向至另一個配置。

PolicySchemeOptions

包含 所使用的 PolicySchemeHandler 選項。

PrincipalContext<TOptions>

處理 ClaimsPrincipal 之驗證事件的基底內容。

PropertiesContext<TOptions>

包含 AuthenticationProperties 之驗證事件的基底內容。

PropertiesDataFormat

SecureDataFormat<TData> 保護 AuthenticationProperties 的實例。

PropertiesSerializer

AuthenticationPropertiesIDataSerializer<TModel>

RedirectContext<TOptions>

針對重新導向事件傳遞的內容。

RemoteAuthenticationContext<TOptions>

遠端驗證的基礎內容。

RemoteAuthenticationEvents

允許訂閱遠端驗證期間引發的事件。

RemoteAuthenticationHandler<TOptions>

使用個別裝載提供者執行驗證之 的意見化抽象概念 AuthenticationHandler<TOptions>

RemoteAuthenticationOptions

包含 所使用的 RemoteAuthenticationHandler<TOptions> 選項。

RemoteFailureContext

提供處理常式提供者的失敗內容資訊。

RequestPathBaseCookieBuilder

設定 Path 為要求路徑基底的 Cookie 產生器。

ResultContext<TOptions>

產生 AuthenticationResults 之事件的基底內容。

SecureDataFormat<TData>

的實作 ISecureDataFormat<TData>

SharedAuthenticationOptions

包含可啟用驗證支援的類型。 IAuthenticationService 是定義 5 個驗證動作的主要進入點:驗證 (取得要求的任何驗證資料) ,挑戰 (用於未經驗證的要求) 、當驗證要求) 應遭到拒絕時使用的 Forbid (,SignIn (建立 ClaimsPrincipal) 、SignOut (移除任何相關聯的資料) 。 概括而言,驗證是以配置的概念為基礎,其會對應至負責處理每個驗證動作的特定 IAuthenticationHandler 實例。

SignInAuthenticationHandler<TOptions>

新增 SignInAsync 的支援

SignOutAuthenticationHandler<TOptions>

新增 SignOutAsync 的支援

SystemClock

以秒為單位提供標準系統時鐘的存取權。

TicketDataFormat

SecureDataFormat<TData> 保護 AuthenticationTicket 的實例。

TicketReceivedContext

提供處理常式提供者的內容資訊。

TicketSerializer

序列化和還原序列化 AuthenticationTicket 實例。

介面

IAuthenticateResultFeature

用來從授權中介軟體擷取 AuthenticateResult

IAuthenticationConfigurationProvider

提供介面,以模擬提供驗證相關組態區段存取權的建構。

IAuthenticationFeature

用來擷取路徑資訊,以便在應用程式內正確計算重新導向。Map () 。

IAuthenticationHandler

為每個要求建立,以處理特定配置的驗證。

IAuthenticationHandlerProvider

為 authenticationScheme 和要求提供適當的 IAuthenticationHandler 實例。

IAuthenticationRequestHandler

用來判斷處理常式是否要參與要求處理。

IAuthenticationSchemeProvider

負責管理支援的驗證Schemes。

IAuthenticationService

用來提供驗證。

IAuthenticationSignInHandler

用來判斷處理常式是否支援 SignIn。

IAuthenticationSignOutHandler

用來判斷處理常式是否支援 SignOut。

IClaimsTransformation

用於 IAuthenticationService 宣告轉換的 。

IClaimsTransformer

用於宣告轉換。

IDataSerializer<TModel>

序列化驗證資料的合約。

IRemoteAuthenticationEvents

包含可啟用驗證支援的類型。 IAuthenticationService 是定義 5 個驗證動作的主要進入點:驗證 (取得要求的任何驗證資料) ,挑戰 (用於未經驗證的要求) 、當驗證要求) 應遭到拒絕時使用的 Forbid (,SignIn (建立 ClaimsPrincipal) 、SignOut (移除任何相關聯的資料) 。 概括而言,驗證是以配置的概念為基礎,其會對應至負責處理每個驗證動作的特定 IAuthenticationHandler 實例。

ISecureDataFormat<TData>

保護資料的合約。

ISystemClock

提取系統時鐘以加速測試。

列舉

EventResultState

包含可啟用驗證支援的類型。 IAuthenticationService 是定義 5 個驗證動作的主要進入點:驗證 (取得要求的任何驗證資料) ,挑戰 (用於未經驗證的要求) 、當驗證要求) 應遭到拒絕時使用的 Forbid (,SignIn (建立 ClaimsPrincipal) 、SignOut (移除任何相關聯的資料) 。 概括而言,驗證是以配置的概念為基礎,其會對應至負責處理每個驗證動作的特定 IAuthenticationHandler 實例。

備註

如需驗證的詳細資訊,請參閱ASP.NET Core中的驗證簡介