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[])

设置“范围”参数值。

(继承自 OAuthChallengeProperties)
SetString(String, String)

从集合中设置或删除字符串值 Items

(继承自 AuthenticationProperties)

扩展方法

GetTokens(AuthenticationProperties)

返回属性中包含的所有 AuthenticationToken 实例。

GetTokenValue(AuthenticationProperties, String)

返回标记的值。

StoreTokens(AuthenticationProperties, IEnumerable<AuthenticationToken>)

在删除任何旧令牌后存储一组身份验证令牌。

UpdateTokenValue(AuthenticationProperties, String, String)

汇报令牌的值(如果已存在)。

适用于