OAuthChallengeProperties 類別

定義

AuthenticationProperties 適用于 OAuth 挑戰。

public ref class OAuthChallengeProperties : Microsoft::AspNetCore::Authentication::AuthenticationProperties
public class OAuthChallengeProperties : Microsoft.AspNetCore.Authentication.AuthenticationProperties
type OAuthChallengeProperties = class
    inherit AuthenticationProperties
Public Class OAuthChallengeProperties
Inherits AuthenticationProperties
繼承
OAuthChallengeProperties
衍生

建構函式

OAuthChallengeProperties()

初始化 OAuthChallengeProperties 的新執行個體。

OAuthChallengeProperties(IDictionary<String,String>)

初始化 OAuthChallengeProperties 的新執行個體。

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

初始化 OAuthChallengeProperties 的新執行個體。

欄位

ScopeKey

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

屬性

AllowRefresh

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

(繼承來源 AuthenticationProperties)
ExpiresUtc

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

(繼承來源 AuthenticationProperties)
IsPersistent

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

(繼承來源 AuthenticationProperties)
IssuedUtc

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

(繼承來源 AuthenticationProperties)
Items

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

(繼承來源 AuthenticationProperties)
Parameters

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

(繼承來源 AuthenticationProperties)
RedirectUri

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

(繼承來源 AuthenticationProperties)
Scope

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

方法

Clone()

傳回復本。

(繼承來源 AuthenticationProperties)
GetBool(String)

從集合取得可為 Boolean Null 的 Items

(繼承來源 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」 參數值。

SetString(String, String)

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

(繼承來源 AuthenticationProperties)

擴充方法

GetTokens(AuthenticationProperties)

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

GetTokenValue(AuthenticationProperties, String)

傳回權杖的值。

StoreTokens(AuthenticationProperties, IEnumerable<AuthenticationToken>)

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

UpdateTokenValue(AuthenticationProperties, String, String)

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

適用於