Share via


GoogleChallengeProperties 類別

定義

AuthenticationProperties 適用于 Google OAuth 挑戰。

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

建構函式

GoogleChallengeProperties()

初始化 GoogleChallengeProperties 的新執行個體。

GoogleChallengeProperties(IDictionary<String,String>)

初始化 GoogleChallengeProperties 的新執行個體。

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

初始化 GoogleChallengeProperties 的新執行個體。

欄位

AccessTypeKey

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

ApprovalPromptKey

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

IncludeGrantedScopesKey

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

LoginHintKey

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

PromptParameterKey

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

屬性

AccessType

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

AllowRefresh

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

(繼承來源 AuthenticationProperties)
ApprovalPrompt

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

ExpiresUtc

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

(繼承來源 AuthenticationProperties)
IncludeGrantedScopes

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

IsPersistent

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

(繼承來源 AuthenticationProperties)
IssuedUtc

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

(繼承來源 AuthenticationProperties)
Items

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

(繼承來源 AuthenticationProperties)
LoginHint

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

Parameters

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

(繼承來源 AuthenticationProperties)
Prompt

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

RedirectUri

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

(繼承來源 AuthenticationProperties)
Scope

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

(繼承來源 OAuthChallengeProperties)

方法

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」 參數值。

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

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

(繼承來源 AuthenticationProperties)

擴充方法

GetTokens(AuthenticationProperties)

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

GetTokenValue(AuthenticationProperties, String)

傳回權杖的值。

StoreTokens(AuthenticationProperties, IEnumerable<AuthenticationToken>)

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

UpdateTokenValue(AuthenticationProperties, String, String)

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

適用於