TwitterHandler 類別

定義

Twitter OAuth 型驗證的驗證處理常式。

public ref class TwitterHandler : Microsoft::AspNetCore::Authentication::RemoteAuthenticationHandler<Microsoft::AspNetCore::Authentication::Twitter::TwitterOptions ^>
public class TwitterHandler : Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<Microsoft.AspNetCore.Authentication.Twitter.TwitterOptions>
type TwitterHandler = class
    inherit RemoteAuthenticationHandler<TwitterOptions>
Public Class TwitterHandler
Inherits RemoteAuthenticationHandler(Of TwitterOptions)
繼承

建構函式

TwitterHandler(IOptionsMonitor<TwitterOptions>, ILoggerFactory, UrlEncoder)

初始化 TwitterHandler 的新執行個體。

TwitterHandler(IOptionsMonitor<TwitterOptions>, ILoggerFactory, UrlEncoder, ISystemClock)
已淘汰.

初始化 TwitterHandler 的新執行個體。

屬性

ChallengeCalled

Twitter OAuth 型驗證的驗證處理常式。

(繼承來源 AuthenticationHandler<TOptions>)
ClaimsIssuer

取得發行任何宣告時應該使用的簽發者。

(繼承來源 AuthenticationHandler<TOptions>)
Clock
已淘汰.

取得 ISystemClock

(繼承來源 AuthenticationHandler<TOptions>)
Context

取得或設定 HttpContext

(繼承來源 AuthenticationHandler<TOptions>)
CurrentUri

取得絕對目前的 URL。

(繼承來源 AuthenticationHandler<TOptions>)
Events

處理常式會針對事件呼叫方法,以在發生處理的特定時間點提供應用程式控制。 若未提供,則會提供呼叫方法時沒有作用的預設執行個體。

InitializeResult

Twitter OAuth 型驗證的驗證處理常式。

(繼承來源 AuthenticationHandler<TOptions>)
Logger

取得 ILogger

(繼承來源 AuthenticationHandler<TOptions>)
Options

取得或設定與這個驗證處理常式相關聯的選項。

(繼承來源 AuthenticationHandler<TOptions>)
OptionsMonitor

IOptionsMonitor<TOptions>取得 ,以偵測選項的變更。

(繼承來源 AuthenticationHandler<TOptions>)
OriginalPath

取得驗證中介軟體所見的路徑。

(繼承來源 AuthenticationHandler<TOptions>)
OriginalPathBase

取得驗證中介軟體所見的路徑基底。

(繼承來源 AuthenticationHandler<TOptions>)
PriorHandler

Twitter OAuth 型驗證的驗證處理常式。

(繼承來源 AuthenticationHandler<TOptions>)
Request

HttpRequest取得與目前要求相關聯的 。

(繼承來源 AuthenticationHandler<TOptions>)
Response

HttpResponse取得與目前要求相關聯的 。

(繼承來源 AuthenticationHandler<TOptions>)
Scheme

取得或設定 AuthenticationScheme 與這個驗證處理常式關聯的 。

(繼承來源 AuthenticationHandler<TOptions>)
SignInAccepted

Twitter OAuth 型驗證的驗證處理常式。

(繼承來源 AuthenticationHandler<TOptions>)
SignInScheme

預設用於登入的驗證配置。

(繼承來源 RemoteAuthenticationHandler<TOptions>)
SignOutAccepted

Twitter OAuth 型驗證的驗證處理常式。

(繼承來源 AuthenticationHandler<TOptions>)
TimeProvider

取得目前的時間,主要是用於單元測試。

(繼承來源 AuthenticationHandler<TOptions>)
UrlEncoder

取得 UrlEncoder

(繼承來源 AuthenticationHandler<TOptions>)

方法

AuthenticateAsync()

驗證目前的要求。

(繼承來源 AuthenticationHandler<TOptions>)
AuthenticateAsync(AuthenticateContext)

Twitter OAuth 型驗證的驗證處理常式。

(繼承來源 AuthenticationHandler<TOptions>)
BuildRedirectUri(String)

建構指定 targetPath 之 的絕對 URL。

(繼承來源 AuthenticationHandler<TOptions>)
ChallengeAsync(AuthenticationProperties)

挑戰目前的要求。

(繼承來源 AuthenticationHandler<TOptions>)
ChallengeAsync(ChallengeContext)

Twitter OAuth 型驗證的驗證處理常式。

(繼承來源 AuthenticationHandler<TOptions>)
CreateEventsAsync()

建立事件實例的新實例。

CreateTicketAsync(ClaimsIdentity, AuthenticationProperties, AccessToken, JObject)

Twitter OAuth 型驗證的驗證處理常式。

CreateTicketAsync(ClaimsIdentity, AuthenticationProperties, AccessToken, JsonElement)

AuthenticationTicket從指定的 token 建立 。

FinishResponseAsync()

即將傳送回應時所呼叫的勾點

(繼承來源 AuthenticationHandler<TOptions>)
ForbidAsync(AuthenticationProperties)

禁止目前的要求。

(繼承來源 AuthenticationHandler<TOptions>)
GenerateCorrelationId(AuthenticationProperties)

產生 Cookie,其中包含用來使目前遠端驗證要求相互關聯的 nonce。

(繼承來源 RemoteAuthenticationHandler<TOptions>)
GenerateCorrelationId(AuthenticationProperties)

Twitter OAuth 型驗證的驗證處理常式。

(繼承來源 RemoteAuthenticationHandler<TOptions>)
GetDescriptions(DescribeSchemesContext)

Twitter OAuth 型驗證的驗證處理常式。

(繼承來源 AuthenticationHandler<TOptions>)
HandleAccessDeniedErrorAsync(AuthenticationProperties)

衍生類型可能會覆寫這個方法,以處理拒絕存取的錯誤。

(繼承來源 RemoteAuthenticationHandler<TOptions>)
HandleAuthenticateAsync()

允許衍生類型處理驗證。

(繼承來源 RemoteAuthenticationHandler<TOptions>)
HandleAuthenticateOnceAsync()

用來確保 HandleAuthenticateAsync 只會叫用一次。 後續呼叫會傳回相同的驗證結果。

(繼承來源 AuthenticationHandler<TOptions>)
HandleAuthenticateOnceSafeAsync()

用來確保 HandleAuthenticateAsync 只會安全地叫用一次。 後續呼叫會傳回相同的驗證結果。 任何例外狀況都會轉換成包含例外狀況的失敗驗證結果。

(繼承來源 AuthenticationHandler<TOptions>)
HandleChallengeAsync(AuthenticationProperties)

如果有問題的驗證配置在要求流程中處理驗證互動,請覆寫此方法來處理 401 挑戰考慮。 (例如新增回應標頭,或變更 401 結果為登入頁面 302 或外部登入位置)。

HandleForbiddenAsync(AuthenticationProperties)

覆寫此方法以處理 Forbid。

(繼承來源 RemoteAuthenticationHandler<TOptions>)
HandleForbiddenAsync(ChallengeContext)

Twitter OAuth 型驗證的驗證處理常式。

(繼承來源 RemoteAuthenticationHandler<TOptions>)
HandleRemoteAuthenticateAsync()

使用識別提供者驗證使用者身分識別。

方法會處理 CallbackPath 所定義端點上的要求。

HandleRemoteCallbackAsync()

Twitter OAuth 型驗證的驗證處理常式。

(繼承來源 RemoteAuthenticationHandler<TOptions>)
HandleRequestAsync()

處理目前的驗證要求。

(繼承來源 RemoteAuthenticationHandler<TOptions>)
HandleSignInAsync(SignInContext)

Twitter OAuth 型驗證的驗證處理常式。

(繼承來源 RemoteAuthenticationHandler<TOptions>)
HandleSignOutAsync(SignOutContext)

Twitter OAuth 型驗證的驗證處理常式。

(繼承來源 RemoteAuthenticationHandler<TOptions>)
HandleUnauthorizedAsync(ChallengeContext)

如果有問題的驗證配置在要求流程中處理驗證互動,請覆寫此方法來處理 401 挑戰考慮。 (例如新增回應標頭,或變更 401 結果為登入頁面 302 或外部登入位置)。

(繼承來源 AuthenticationHandler<TOptions>)
InitializeAsync(AuthenticationScheme, HttpContext)

初始化處理常式、解析選項並加以驗證。

(繼承來源 AuthenticationHandler<TOptions>)
InitializeAsync(TOptions, HttpContext, ILogger, UrlEncoder)

每個要求會呼叫初始化一次,以適當狀態將此實例內容化。

(繼承來源 AuthenticationHandler<TOptions>)
InitializeEventsAsync()

初始化 事件物件,每個要求呼叫一次。 InitializeAsync(AuthenticationScheme, HttpContext)

(繼承來源 AuthenticationHandler<TOptions>)
InitializeHandlerAsync()

在已初始化選項/事件之後呼叫,處理常式才能完成初始化本身。

(繼承來源 AuthenticationHandler<TOptions>)
ResolveTarget(String)

解析此驗證作業轉送至的配置。

(繼承來源 AuthenticationHandler<TOptions>)
ShouldHandleRequestAsync()

取得值,這個值會判斷目前的驗證要求是否應該由 HandleRequestAsync() 處理。

(繼承來源 RemoteAuthenticationHandler<TOptions>)
ShouldHandleScheme(String, Boolean)

Twitter OAuth 型驗證的驗證處理常式。

(繼承來源 AuthenticationHandler<TOptions>)
SignInAsync(SignInContext)

Twitter OAuth 型驗證的驗證處理常式。

(繼承來源 AuthenticationHandler<TOptions>)
SignOutAsync(SignOutContext)

Twitter OAuth 型驗證的驗證處理常式。

(繼承來源 AuthenticationHandler<TOptions>)
ValidateCorrelationId(AuthenticationProperties)

驗證目前的要求是否與目前的遠端驗證要求相互關聯。

(繼承來源 RemoteAuthenticationHandler<TOptions>)
ValidateCorrelationId(AuthenticationProperties)

Twitter OAuth 型驗證的驗證處理常式。

(繼承來源 RemoteAuthenticationHandler<TOptions>)

適用於