OpenIdConnectChallengeProperties 类

定义

AuthenticationProperties 用于 OpenId Connect 质询。

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

构造函数

OpenIdConnectChallengeProperties()

初始化 OpenIdConnectChallengeProperties 的新实例。

OpenIdConnectChallengeProperties(IDictionary<String,String>)

初始化 OpenIdConnectChallengeProperties 的新实例。

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

初始化 OpenIdConnectChallengeProperties 的新实例。

字段

MaxAgeKey

用于质询请求的“max_age”参数的参数键。

PromptKey

用于质询请求的“prompt”参数的参数键。

属性

AllowRefresh

获取或设置是否应允许刷新身份验证会话。

(继承自 AuthenticationProperties)
ExpiresUtc

获取或设置身份验证票证的过期时间。

(继承自 AuthenticationProperties)
IsPersistent

获取或设置是否在多次请求后保留身份验证会话。

(继承自 AuthenticationProperties)
IssuedUtc

获取或设置身份验证票证的颁发时间。

(继承自 AuthenticationProperties)
Items

有关身份验证会话的状态值。

(继承自 AuthenticationProperties)
MaxAge

用于质询请求的“max_age”参数值。

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)

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

适用于