JwtBearerEvents.OnTokenValidated 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在安全令牌已通过验证并生成 ClaimsIdentity 后调用。
public:
property Func<Microsoft::AspNetCore::Authentication::JwtBearer::TokenValidatedContext ^, System::Threading::Tasks::Task ^> ^ OnTokenValidated { Func<Microsoft::AspNetCore::Authentication::JwtBearer::TokenValidatedContext ^, System::Threading::Tasks::Task ^> ^ get(); void set(Func<Microsoft::AspNetCore::Authentication::JwtBearer::TokenValidatedContext ^, System::Threading::Tasks::Task ^> ^ value); };
public Func<Microsoft.AspNetCore.Authentication.JwtBearer.TokenValidatedContext,System.Threading.Tasks.Task> OnTokenValidated { get; set; }
member this.OnTokenValidated : Func<Microsoft.AspNetCore.Authentication.JwtBearer.TokenValidatedContext, System.Threading.Tasks.Task> with get, set
Public Property OnTokenValidated As Func(Of TokenValidatedContext, Task)