FacebookOptions 類別

定義

FacebookHandler 的組態選項。

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

建構函式

FacebookOptions()

初始化新的 FacebookOptions

屬性

AccessDeniedPath

取得或設定使用者代理程式重新導向至的選擇性路徑,如果使用者未核准遠端伺服器所要求的授權需求。 此屬性預設不會設定。 在此情況下,如果遠端授權伺服器傳回access_denied回應,就會擲回例外狀況。

(繼承來源 RemoteAuthenticationOptions)
AppId

取得或設定 Facebook 指派的應用程式識別碼。

AppSecret

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

AuthorizationEndpoint

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

(繼承來源 OAuthOptions)
Backchannel

用來與遠端識別提供者通訊。

(繼承來源 RemoteAuthenticationOptions)
BackchannelHttpHandler

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

(繼承來源 RemoteAuthenticationOptions)
BackchannelTimeout

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

(繼承來源 RemoteAuthenticationOptions)
CallbackPath

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

(繼承來源 RemoteAuthenticationOptions)
ClaimActions

用來從 json 使用者資料中選取值的宣告動作集合,並建立宣告。

(繼承來源 OAuthOptions)
ClaimsIssuer

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

(繼承來源 AuthenticationSchemeOptions)
ClientId

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

(繼承來源 OAuthOptions)
ClientSecret

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

(繼承來源 OAuthOptions)
CorrelationCookie

決定在 Cookie 新增至回應之前,用來建立相互關聯 Cookie 的設定。

(繼承來源 RemoteAuthenticationOptions)
DataProtectionProvider

取得或設定用來保護資料的型別。

(繼承來源 RemoteAuthenticationOptions)
Events

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

(繼承來源 OAuthOptions)
EventsType

如果設定,將會作為服務類型來取得 Events 實例,而不是 屬性。

(繼承來源 AuthenticationSchemeOptions)
Fields

要從 UserInformationEndpoint 擷取的欄位清單。

ForwardAuthenticate

如果設定,這會指定此配置應該轉送 AuthenticationAsync 呼叫的目標配置。 例如 CoNtext.AuthenticateAsync (「ThisScheme」) = > CoNtext.AuthenticateAsync (「ForwardAuthenticateValue」) ;將目標設定為目前的配置,以停用轉送並允許正常處理。

(繼承來源 AuthenticationSchemeOptions)
ForwardChallenge

如果設定,這會指定此配置應該轉送 ChallengeAsync 呼叫的目標配置。 例如 CoNtext.ChallengeAsync (「ThisScheme」) = > CoNtext.ChallengeAsync (「ForwardChallengeValue」) ;將目標設定為目前的配置,以停用轉送並允許正常處理。

(繼承來源 AuthenticationSchemeOptions)
ForwardDefault

如果設定,這會指定驗證處理常式預設會將所有驗證作業轉送至的預設配置。 預設轉送邏輯會先檢查最特定的 ForwardAuthenticate/Challenge/Forbid/SignIn/SignOut 設定,然後檢查 ForwardDefaultSelector,後面接著 ForwardDefault。 第一個非 Null 結果會作為要轉送的目標配置。

(繼承來源 AuthenticationSchemeOptions)
ForwardDefaultSelector

用來選取目前要求的預設配置,驗證處理常式預設應該將所有驗證作業轉送至 。 預設轉送邏輯會先檢查最特定的 ForwardAuthenticate/Challenge/Forbid/SignIn/SignOut 設定,然後檢查 ForwardDefaultSelector,後面接著 ForwardDefault。 第一個非 Null 結果會作為要轉送的目標配置。

(繼承來源 AuthenticationSchemeOptions)
ForwardForbid

如果設定,這會指定此配置應該轉送 ForbidAsync 呼叫的目標配置。 例如 CoNtext.ForbidAsync (「ThisScheme」) = > CoNtext.ForbidAsync (「ForwardForbidValue」) ;將目標設定為目前的配置,以停用轉送並允許正常處理。

(繼承來源 AuthenticationSchemeOptions)
ForwardSignIn

如果設定,這會指定此配置應該轉送 SignInAsync 呼叫的目標配置。 例如 CoNtext.SignInAsync (「ThisScheme」) = > CoNtext.SignInAsync (「ForwardSignInValue」) ;將目標設定為目前的配置,以停用轉送並允許正常處理。

(繼承來源 AuthenticationSchemeOptions)
ForwardSignOut

如果設定,這會指定此配置應該轉送 SignOutAsync 呼叫的目標配置。 例如 CoNtext.SignOutAsync (「ThisScheme」) = > CoNtext.SignOutAsync (「ForwardSignOutValue」) ;將目標設定為目前的配置,以停用轉送並允許正常處理。

(繼承來源 AuthenticationSchemeOptions)
RemoteAuthenticationTimeout

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

(繼承來源 RemoteAuthenticationOptions)
ReturnUrlParameter

取得或設定參數的名稱,用來在遠端挑戰觸發到拒絕存取頁面之前傳達使用者的原始位置。 只有在明確指定 時 AccessDeniedPath ,才會使用這個屬性。

(繼承來源 RemoteAuthenticationOptions)
SaveTokens

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

(繼承來源 RemoteAuthenticationOptions)
Scope

取得要求的許可權清單。

(繼承來源 OAuthOptions)
SendAppSecretProof

取得或設定是否 appsecret_proof 應該使用 Facebook API 呼叫產生和傳送 。

SignInScheme

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

(繼承來源 RemoteAuthenticationOptions)
StateDataFormat

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

(繼承來源 OAuthOptions)
TimeProvider

用於測試。

(繼承來源 AuthenticationSchemeOptions)
TokenEndpoint

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

(繼承來源 OAuthOptions)
UsePkce

啟用或停用使用程式碼交換的證明金鑰 (PKCE) 標準。 請參閱 https://tools.ietf.org/html/rfc7636。 預設值是 , false 但衍生的處理常式應該在其提供者支援時啟用此功能。

(繼承來源 OAuthOptions)
UserInformationEndpoint

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

(繼承來源 OAuthOptions)

方法

Validate()

檢查選項是否有效。 如果專案不正常,應該擲回例外狀況。

Validate(String)

檢查選項是否適用于特定配置

(繼承來源 RemoteAuthenticationOptions)

適用於