FacebookOptions 類別

定義

FacebookMiddleware 的組態選項。

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

建構函式

FacebookOptions()

初始化新的 FacebookOptions

屬性

AppId

取得或設定 Facebook 指派的 appId。

AppSecret

取得或設定 Facebook 指派的應用程式秘密。

AuthenticationScheme

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

(繼承來源 AuthenticationOptions)
AuthorizationEndpoint

取得或設定將重新導向用戶端以驗證的 URI。

(繼承來源 OAuthOptions)
AutomaticAuthenticate

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

(繼承來源 AuthenticationOptions)
AutomaticChallenge

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

(繼承來源 AuthenticationOptions)
BackchannelHttpHandler

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

(繼承來源 RemoteAuthenticationOptions)
BackchannelTimeout

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

(繼承來源 RemoteAuthenticationOptions)
CallbackPath

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

(繼承來源 RemoteAuthenticationOptions)
ClaimsIssuer

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

(繼承來源 AuthenticationOptions)
ClientId

取得或設定提供者指派的用戶端識別碼。

(繼承來源 OAuthOptions)
ClientSecret

取得或設定提供者指派的用戶端密碼。

(繼承來源 OAuthOptions)
Description

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

(繼承來源 AuthenticationOptions)
DisplayName

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

(繼承來源 RemoteAuthenticationOptions)
Events

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

(繼承來源 OAuthOptions)
Fields

要從 UserInformationEndpoint 擷取的欄位清單。 https://developers.facebook.com/docs/graph-api/reference/user

RemoteAuthenticationTimeout

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

(繼承來源 RemoteAuthenticationOptions)
SaveTokens

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

(繼承來源 RemoteAuthenticationOptions)
Scope

取得要求的許可權清單。

(繼承來源 OAuthOptions)
SendAppSecretProof

取得或設定 appsecret_proof 是否應該產生並隨著 Facebook API 呼叫一起傳送。 此選項預設為啟用狀態。

SignInScheme

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

(繼承來源 RemoteAuthenticationOptions)
StateDataFormat

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

(繼承來源 OAuthOptions)
SystemClock

僅供測試用途使用。

(繼承來源 OAuthOptions)
TokenEndpoint

取得或設定中介軟體將存取以交換 OAuth 權杖的 URI。

(繼承來源 OAuthOptions)
UserInformationEndpoint

取得或設定中介軟體將存取以取得使用者資訊的 URI。 此值不會用於預設實作中,用於 IOAuthAuthAuthenticationEvents.Authenticated 或 OAuthAuthAuthenticationHandler.CreateTicketAsync 的自訂實作。

(繼承來源 OAuthOptions)

適用於