MessageReceivedContext 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
的 OnMessageReceived上下文。
public ref class MessageReceivedContext : Microsoft::AspNetCore::Authentication::JwtBearer::BaseJwtBearerContext
public ref class MessageReceivedContext : Microsoft::AspNetCore::Authentication::ResultContext<Microsoft::AspNetCore::Authentication::JwtBearer::JwtBearerOptions ^>
public class MessageReceivedContext : Microsoft.AspNetCore.Authentication.JwtBearer.BaseJwtBearerContext
public class MessageReceivedContext : Microsoft.AspNetCore.Authentication.ResultContext<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions>
type MessageReceivedContext = class
inherit BaseJwtBearerContext
type MessageReceivedContext = class
inherit ResultContext<JwtBearerOptions>
Public Class MessageReceivedContext
Inherits BaseJwtBearerContext
Public Class MessageReceivedContext
Inherits ResultContext(Of JwtBearerOptions)
- 继承
- 继承
构造函数
| MessageReceivedContext(HttpContext, AuthenticationScheme, JwtBearerOptions) |
初始化 MessageReceivedContext 的新实例。 |
| MessageReceivedContext(HttpContext, JwtBearerOptions) |
的 OnMessageReceived上下文。 |
属性
| HandledResponse |
的 OnMessageReceived上下文。 (继承自 BaseControlContext) |
| HttpContext |
的 OnMessageReceived上下文。 (继承自 BaseContext) |
| HttpContext |
上下文。 (继承自 BaseContext<TOptions>) |
| Options |
的 OnMessageReceived上下文。 (继承自 BaseJwtBearerContext) |
| Options |
获取与方案关联的身份验证选项。 (继承自 BaseContext<TOptions>) |
| Principal |
获取或设置 ClaimsPrincipal 包含用户声明的 。 (继承自 ResultContext<TOptions>) |
| Properties |
获取或设置 AuthenticationProperties。 (继承自 ResultContext<TOptions>) |
| Request |
的 OnMessageReceived上下文。 (继承自 BaseContext) |
| Request |
请求。 (继承自 BaseContext<TOptions>) |
| Response |
的 OnMessageReceived上下文。 (继承自 BaseContext) |
| Response |
响应。 (继承自 BaseContext<TOptions>) |
| Result |
获取 AuthenticateResult 结果。 (继承自 ResultContext<TOptions>) |
| Scheme |
身份验证方案。 (继承自 BaseContext<TOptions>) |
| Skipped |
的 OnMessageReceived上下文。 (继承自 BaseControlContext) |
| State |
的 OnMessageReceived上下文。 (继承自 BaseControlContext) |
| Ticket |
获取或设置 Ticket 如果此事件表明它已处理事件,则返回 。 (继承自 BaseControlContext) |
| Token |
持有者令牌。 这样,应用程序就有机会从备用位置检索令牌。 |
方法
| CheckEventResult(AuthenticateResult) |
的 OnMessageReceived上下文。 (继承自 BaseControlContext) |
| Fail(Exception) |
指示身份验证期间失败。 (继承自 ResultContext<TOptions>) |
| Fail(String) |
指示身份验证期间失败。 (继承自 ResultContext<TOptions>) |
| HandleResponse() |
停止针对此请求的所有处理并返回到客户端。 调用方负责生成完整响应。 设置 以 Ticket 触发 SignIn。 (继承自 BaseControlContext) |
| NoResult() |
指示没有为此身份验证方案返回任何信息。 (继承自 ResultContext<TOptions>) |
| SkipToNextMiddleware() |
停止处理当前中间件中的请求并将控制权传递给下一个项。 不会调用 SignIn。 (继承自 BaseControlContext) |
| Success() |
使用 和 Properties调用成功创建票证Principal。 (继承自 ResultContext<TOptions>) |