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)

从集合中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”参数值。

SetString(String, String)

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

(继承自 AuthenticationProperties)

扩展方法

GetTokens(AuthenticationProperties)

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

GetTokenValue(AuthenticationProperties, String)

返回令牌的值。

StoreTokens(AuthenticationProperties, IEnumerable<AuthenticationToken>)

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

UpdateTokenValue(AuthenticationProperties, String, String)

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

适用于