RemoteAuthenticationContext<TOptions> 類別

定義

遠端驗證的基礎內容。

generic <typename TOptions>
 where TOptions : AuthenticationSchemeOptionspublic ref class RemoteAuthenticationContext abstract : Microsoft::AspNetCore::Authentication::HandleRequestContext<TOptions>
public abstract class RemoteAuthenticationContext<TOptions> : Microsoft.AspNetCore.Authentication.HandleRequestContext<TOptions> where TOptions : AuthenticationSchemeOptions
type RemoteAuthenticationContext<'Options (requires 'Options :> AuthenticationSchemeOptions)> = class
    inherit HandleRequestContext<'Options (requires 'Options :> AuthenticationSchemeOptions)>
Public MustInherit Class RemoteAuthenticationContext(Of TOptions)
Inherits HandleRequestContext(Of TOptions)

類型參數

TOptions
繼承
RemoteAuthenticationContext<TOptions>
衍生

建構函式

RemoteAuthenticationContext<TOptions>(HttpContext, AuthenticationScheme, TOptions, AuthenticationProperties)

建構函式。

屬性

HttpContext

內容。

(繼承來源 BaseContext<TOptions>)
Options

取得與配置相關聯的驗證選項。

(繼承來源 BaseContext<TOptions>)
Principal

取得包含 ClaimsPrincipal 使用者宣告的 。

Properties

取得或設定 AuthenticationProperties

Request

要求。

(繼承來源 BaseContext<TOptions>)
Response

回應。

(繼承來源 BaseContext<TOptions>)
Result

HandleRequestResult處理常式所使用的 。

(繼承來源 HandleRequestContext<TOptions>)
Scheme

驗證配置。

(繼承來源 BaseContext<TOptions>)

方法

Fail(Exception)

表示驗證失敗。

Fail(String)

表示驗證失敗。

HandleResponse()

中斷此要求的所有處理並返回用戶端。 呼叫端負責產生完整回應。

(繼承來源 HandleRequestContext<TOptions>)
SkipHandler()

停止處理目前處理常式中的要求。

(繼承來源 HandleRequestContext<TOptions>)
Success()

使用 和 Properties 呼叫成功建立票證 Principal

適用於