RemoteAuthenticationOptions 類別

定義

包含 所使用的 RemoteAuthenticationHandler<TOptions> 選項。

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

建構函式

RemoteAuthenticationOptions()

包含 所使用的 RemoteAuthenticationHandler<TOptions> 選項。

欄位

Events

包含 所使用的 RemoteAuthenticationHandler<TOptions> 選項。

屬性

AuthenticationScheme

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

(繼承來源 AuthenticationOptions)
AutomaticAuthenticate

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

(繼承來源 AuthenticationOptions)
AutomaticChallenge

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

(繼承來源 AuthenticationOptions)
BackchannelHttpHandler

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

BackchannelTimeout

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

CallbackPath

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

ClaimsIssuer

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

(繼承來源 AuthenticationOptions)
Description

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

(繼承來源 AuthenticationOptions)
DisplayName

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

RemoteAuthenticationTimeout

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

SaveTokens

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

SignInScheme

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

SystemClock

僅供測試用途使用。

(繼承來源 AuthenticationOptions)

適用於