SecurityTokenReceivedContext 类

定义

此上下文可用于在令牌终结点上兑换令牌的“AuthorizationCode”时通知。

public ref class SecurityTokenReceivedContext : Microsoft::AspNetCore::Authentication::RemoteAuthenticationContext<Microsoft::AspNetCore::Authentication::WsFederation::WsFederationOptions ^>
public class SecurityTokenReceivedContext : Microsoft.AspNetCore.Authentication.RemoteAuthenticationContext<Microsoft.AspNetCore.Authentication.WsFederation.WsFederationOptions>
type SecurityTokenReceivedContext = class
    inherit RemoteAuthenticationContext<WsFederationOptions>
Public Class SecurityTokenReceivedContext
Inherits RemoteAuthenticationContext(Of WsFederationOptions)
继承

构造函数

SecurityTokenReceivedContext(HttpContext, AuthenticationScheme, WsFederationOptions, AuthenticationProperties)

创建一个 SecurityTokenReceivedContext

属性

HttpContext

上下文。

(继承自 BaseContext<TOptions>)
Options

获取与方案关联的身份验证选项。

(继承自 BaseContext<TOptions>)
Principal

获取 ClaimsPrincipal 包含用户声明的 。

(继承自 RemoteAuthenticationContext<TOptions>)
Properties

获取或设置 AuthenticationProperties

(继承自 RemoteAuthenticationContext<TOptions>)
ProtocolMessage

WsFederationMessage在此请求中收到的 。

Request

请求。

(继承自 BaseContext<TOptions>)
Response

响应。

(继承自 BaseContext<TOptions>)
Result

HandleRequestResult处理程序使用的 。

(继承自 HandleRequestContext<TOptions>)
Scheme

身份验证方案。

(继承自 BaseContext<TOptions>)

方法

Fail(Exception)

指示身份验证失败。

(继承自 RemoteAuthenticationContext<TOptions>)
Fail(String)

指示身份验证失败。

(继承自 RemoteAuthenticationContext<TOptions>)
HandleResponse()

停止针对此请求的所有处理并返回到客户端。 调用方负责生成完整响应。

(继承自 HandleRequestContext<TOptions>)
SkipHandler()

停止处理当前处理程序中的请求。

(继承自 HandleRequestContext<TOptions>)
Success()

使用 和 Properties调用成功创建票证Principal

(继承自 RemoteAuthenticationContext<TOptions>)

适用于