语言

OpenIdConnectMessage 类

定义

提供对常见 OpenID Connect 参数的访问权限。

public class OpenIdConnectMessage : Microsoft.IdentityModel.Protocols.AuthenticationProtocolMessage
type OpenIdConnectMessage = class
    inherit AuthenticationProtocolMessage
Public Class OpenIdConnectMessage
Inherits AuthenticationProtocolMessage
继承
OpenIdConnectMessage

构造函数

名称 说明
OpenIdConnectMessage()

初始化 OpenIdConnectMessage 类的新实例。

OpenIdConnectMessage(IEnumerable<KeyValuePair<String,String[]>>)

初始化 OpenIdConnectMessage 类的新实例。

OpenIdConnectMessage(NameValueCollection)

初始化 OpenIdConnectMessage 类的新实例。

OpenIdConnectMessage(OpenIdConnectMessage)

初始化 OpenIdConnectMessage 类的新实例。

OpenIdConnectMessage(String)

使用 json 字符串初始化类的新实例 OpenIdConnectMessage 。

属性

名称 说明
AccessToken

获取或设置“access_Token”。

AcrValues

获取或设置“acr_values”。

AuthorizationEndpoint

获取或设置 AuthorizationEndpoint 的值

ClaimsLocales

获取或设置“claims_Locales”。

ClientAssertion

获取或设置“client_assertion”。

ClientAssertionType

获取或设置“client_assertion_type”。

ClientId

获取或设置“client_id”。

ClientSecret

获取或设置“client_secret”。

Code

获取或设置“code”。

Display

获取或设置“display”。

DomainHint

获取或设置“domain_hint”。

EnableTelemetryParameters

获取或设置是否在此 OpenIdConnectMessage 实例的查询字符串上发送库和版本的参数。 此值在消息创建时设置为 EnableTelemetryParametersByDefault 的值。

EnableTelemetryParametersByDefault

获取或设置是否针对所有实例 OpenIdConnectMessage的查询字符串发送库和版本的参数。

Error

获取或设置“error”。

ErrorDescription

获取或设置“error_description”。

ErrorUri

获取或设置“error_uri”。

ExpiresIn

获取或设置“expires_in”。

GrantType

获取或设置“grant_type”。

IdentityProvider

获取或设置“identity_provider”。

IdToken

获取或设置“id_token”。

IdTokenHint

获取或设置“id_token_hint”。

Iss

获取或设置“iss”。

IssuerAddress

获取或设置颁发者地址。

(继承自 AuthenticationProtocolMessage)
LoginHint

获取或设置“login_hint”。

MaxAge

获取或设置“max_age”。

Nonce

获取或设置“nonce”。

Parameters

获取消息参数作为字典。

(继承自 AuthenticationProtocolMessage)
Password

获取或设置“password”。

PostLogoutRedirectUri

获取或设置“post_logout_redirect_uri”。

PostTitle

获取或设置在构造后字符串时使用的标题。

(继承自 AuthenticationProtocolMessage)
Prompt

获取或设置“prompt”。

RedirectUri

获取或设置“redirect_uri”。

RefreshToken

获取或设置“refresh_token”。

RequestType

获取或设置此消息的请求类型

RequestUri

获取或设置“request_uri”。

Resource

获取或设置“resource”

ResponseMode

获取或设置“response_mode”。

ResponseType

获取或设置“response_type”。

Scope

获取或设置“scope”。

Script

获取构造 post 字符串时使用的脚本。

(继承自 AuthenticationProtocolMessage)
ScriptButtonText

获取或设置构造 post 字符串时使用的脚本按钮文本。

(继承自 AuthenticationProtocolMessage)
ScriptDisabledText

获取或设置在构造要显示在禁用脚本时要使用的 post 字符串时使用的文本。

(继承自 AuthenticationProtocolMessage)
SessionState

获取或设置“session_state”。

Sid

获取或设置“sid”。

SkuTelemetryValue

获取作为 OpenIdConnectMessage 中的遥测数据发送的字符串。

State

获取或设置“state”。

TargetLinkUri

获取或设置“target_link_uri”。

TokenEndpoint

获取或设置令牌终结点的值。

TokenType

获取或设置“token_type”。

UiLocales

获取或设置“ui_locales”。

UserId

获取或设置“user_id”。

Username

获取或设置“username”。

方法

名称 说明
BuildFormPost()

使用当前 IssuerAddress 和已设置的参数生成表单帖子。

(继承自 AuthenticationProtocolMessage)
BuildRedirectUrl()

使用当前 IssuerAddress 和已设置的参数生成 URL。

(继承自 AuthenticationProtocolMessage)
Clone()

返回从此对象复制的值的新实例 OpenIdConnectMessage 。

CreateAuthenticationRequestUrl()

使用此 OpenIdConnectMessage内容的当前内容创建 OpenIdConnect 消息。

CreateLogoutRequestUrl()

使用此 OpenIdConnectMessage内容的当前内容创建查询字符串。

GetParameter(String)

返回参数。

(继承自 AuthenticationProtocolMessage)
RemoveParameter(String)

删除参数。

(继承自 AuthenticationProtocolMessage)
SetParameter(String, String)

将参数设置为 Parameters Dictionary。

(继承自 AuthenticationProtocolMessage)
SetParameters(NameValueCollection)

设置集合参数。

(继承自 AuthenticationProtocolMessage)

适用于