Share via


MicrosoftChallengeProperties 類別

定義

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

建構函式

MicrosoftChallengeProperties()

初始化 的新實例 MicrosoftChallengeProperties

MicrosoftChallengeProperties(IDictionary<String,String>)

初始化 的新實例 MicrosoftChallengeProperties

MicrosoftChallengeProperties(IDictionary<String,String>, IDictionary<String,Object>)

初始化 的新實例 MicrosoftChallengeProperties

欄位

DomainHintKey

用於挑戰要求之 「domain_hint」 引數的參數索引鍵。

LoginHintKey

用於挑戰要求之 「login_hint」 引數的參數索引鍵。

PromptKey

用於挑戰要求之 「prompt」 引數的參數索引鍵。

ResponseModeKey
已淘汰.

用於挑戰要求之 「response_mode」 引數的參數索引鍵。

屬性

AllowRefresh

取得或設定是否應該允許重新整理驗證工作階段。

(繼承來源 AuthenticationProperties)
DomainHint

取得或設定用於挑戰要求的 「domain_hint」 參數值的值。

如果包含,驗證將會略過使用者在登入頁面上經過的電子郵件式探索程式,進而提供稍微簡化的使用者體驗。

ExpiresUtc

取得或設定驗證票證到期的時間。

(繼承來源 AuthenticationProperties)
IsPersistent

取得或設定驗證工作階段是否跨多個要求而持續有效。

(繼承來源 AuthenticationProperties)
IssuedUtc

取得或設定驗證票證的簽發時間。

(繼承來源 AuthenticationProperties)
Items

驗證工作階段的相關狀態值。

(繼承來源 AuthenticationProperties)
LoginHint

取得或設定用於挑戰要求之 「login_hint」 參數值的值。

如果使用者的使用者名稱事先已知,可以使用預先填入使用者登入頁面的使用者名稱/電子郵件地址欄位。

Parameters

傳遞至驗證處理常式的參數集合。 這些不適用於序列化或持續性,僅適用于在呼叫月臺之間流動資料。

(繼承來源 AuthenticationProperties)
Prompt

取得或設定用於查問要求的 「prompt」 參數值的值。

表示需要的使用者互動類型。 目前唯一有效的值為登入、無和同意。

RedirectUri

取得或設定要用做 HTTP 重新導向回應值的完整路徑或絕對 URI。

(繼承來源 AuthenticationProperties)
ResponseMode
已淘汰.

取得或設定用於挑戰要求的參數值 response_mode 。 回應模式會指定應該用來將產生的權杖傳回應用程式的方法。 可以是下列其中一項: query 、、 fragmentform_post

Scope

用於挑戰要求的「scope」 參數值。

(繼承來源 OAuthChallengeProperties)

方法

Clone()

傳回復本。

(繼承來源 AuthenticationProperties)
GetBool(String)

Items 集合取得可為 Null 的 Boolean

(繼承來源 AuthenticationProperties)
GetDateTimeOffset(String)

Items 集合取得可為 DateTimeOffset Null 的值。

(繼承來源 AuthenticationProperties)
GetParameter<T>(String)

從集合取得 Parameters 參數。

(繼承來源 AuthenticationProperties)
GetString(String)

Items 集合取得字串值。

(繼承來源 AuthenticationProperties)
SetBool(String, Nullable<Boolean>)

設定或移除 Boolean 集合中的 Items 值。

(繼承來源 AuthenticationProperties)
SetDateTimeOffset(String, Nullable<DateTimeOffset>)

設定或移除 DateTimeOffset 集合中的 Items 值。

(繼承來源 AuthenticationProperties)
SetParameter<T>(String, T)

在集合中 Parameters 設定參數值。

(繼承來源 AuthenticationProperties)
SetScope(String[])

設定 「scope」 參數值。

(繼承來源 OAuthChallengeProperties)
SetString(String, String)

設定或移除集合中的 Items 字串值。

(繼承來源 AuthenticationProperties)

擴充方法

GetTokens(AuthenticationProperties)

傳回屬性中包含的所有 AuthenticationToken 實例。

GetTokenValue(AuthenticationProperties, String)

傳回權杖的值。

StoreTokens(AuthenticationProperties, IEnumerable<AuthenticationToken>)

移除任何舊權杖之後,儲存一組驗證權杖。

UpdateTokenValue(AuthenticationProperties, String, String)

如果已存在,更新權杖的值。

適用於