Share via


TwitterOptions 類別

定義

Twitter 驗證中介軟體的選項。

public ref class TwitterOptions : Microsoft::AspNetCore::Builder::RemoteAuthenticationOptions
public class TwitterOptions : Microsoft.AspNetCore.Builder.RemoteAuthenticationOptions
type TwitterOptions = class
    inherit RemoteAuthenticationOptions
Public Class TwitterOptions
Inherits RemoteAuthenticationOptions
繼承

建構函式

TwitterOptions()

初始化 TwitterOptions 類別的新執行個體。

屬性

AuthenticationScheme

選項中的 AuthenticationScheme 會對應至特定驗證配置的邏輯名稱。 可能會指派不同的值以便在管線中多次使用相同的驗證中介軟體類型。

(繼承來源 AuthenticationOptions)
AutomaticAuthenticate

如果為 true,驗證中介軟體會改變傳入的要求使用者。 如果為 false,驗證中介軟體只會在 AuthenticationScheme 明確指出時提供身分識別。

(繼承來源 AuthenticationOptions)
AutomaticChallenge

如果為 true,驗證中介軟體應該處理自動挑戰。 如果為 false,驗證中介軟體只會在 AuthenticationScheme 明確指出時改變回應。

(繼承來源 AuthenticationOptions)
BackchannelHttpHandler

用來與遠端識別提供者通訊的 HttpMessageHandler。 此屬性不能與 BackchannelCertificateValidator 同時設定,除非此值可以向下轉型為 WebRequestHandler。

(繼承來源 RemoteAuthenticationOptions)
BackchannelTimeout

取得或設定與遠端識別提供者的反向通道通訊以毫秒為單位的逾時值。

(繼承來源 RemoteAuthenticationOptions)
CallbackPath

應用程式的基本路徑中將傳回 user-agent 的要求路徑。 中介軟體將會在此要求送達時予以處理。

(繼承來源 RemoteAuthenticationOptions)
ClaimsIssuer

取得或設定應該用於所建立之任何宣告的簽發者

(繼承來源 AuthenticationOptions)
ConsumerKey

取得或設定用來與 Twitter 通訊的取用者索引鍵。

ConsumerSecret

取得或設定用來簽署對 Twitter 之要求的取用者密碼。

Description

驗證類型的其他相關資訊可在應用程式中找到。

(繼承來源 AuthenticationOptions)
DisplayName

取得或設定使用者可以顯示在登入使用者介面上的文字。

(繼承來源 RemoteAuthenticationOptions)
Events

取得或設定 ITwitterEvents 用來處理驗證事件的 。

RemoteAuthenticationTimeout

取得或設定預設) 完成驗證流程的時間限制 (15 分鐘。

(繼承來源 RemoteAuthenticationOptions)
RetrieveUserDetails

在驗證程式期間啟用擷取使用者詳細資料,包括電子郵件地址。 擷取電子郵件地址需要每個應用程式上 Twitter 支援的特殊許可權。 預設值為 false。 請參閱https://dev.twitter.com/rest/reference/get/account/verify_credentials

SaveTokens

定義存取權和重新整理權杖是否應在 成功授權之後儲存在 中 AuthenticationProperties 。 此屬性預設會設定為 false ,以減少最終驗證 Cookie 的大小。

(繼承來源 RemoteAuthenticationOptions)
SignInScheme

取得或設定與負責在成功驗證之後保存使用者身分識別的中介軟體對應的驗證配置。 這個值通常會對應到 Startup 類別中註冊的 Cookie 中介軟體。 省略時, SignInScheme 會當做後援值使用。

(繼承來源 RemoteAuthenticationOptions)
StateDataFormat

取得或設定類型,用以保護中介軟體所處理資料的安全。

SystemClock

僅供測試用途使用。

SystemClock

僅供測試用途使用。

(繼承來源 AuthenticationOptions)

適用於