共用方式為


JwtBearerEvents.OnTokenValidated 屬性

定義

在安全性權杖通過驗證且產生 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)

屬性值

適用於