JwtBearerEvents.TokenValidated(TokenValidatedContext) 方法

定义

在安全令牌已通过验证并生成 ClaimsIdentity 后调用。

public:
 virtual System::Threading::Tasks::Task ^ TokenValidated(Microsoft::AspNetCore::Authentication::JwtBearer::TokenValidatedContext ^ context);
public virtual System.Threading.Tasks.Task TokenValidated (Microsoft.AspNetCore.Authentication.JwtBearer.TokenValidatedContext context);
abstract member TokenValidated : Microsoft.AspNetCore.Authentication.JwtBearer.TokenValidatedContext -> System.Threading.Tasks.Task
override this.TokenValidated : Microsoft.AspNetCore.Authentication.JwtBearer.TokenValidatedContext -> System.Threading.Tasks.Task
Public Overridable Function TokenValidated (context As TokenValidatedContext) As Task

参数

返回

实现

适用于