OpenIdConnectEvents.OnTokenValidated 属性

定义

在验证 IdToken 并生成 AuthenticationTicket 时调用。 请注意,此事件之后会进行其他检查,这些检查会验证身份验证流的其他方面,例如 nonce。

public:
 property Func<Microsoft::AspNetCore::Authentication::OpenIdConnect::TokenValidatedContext ^, System::Threading::Tasks::Task ^> ^ OnTokenValidated { Func<Microsoft::AspNetCore::Authentication::OpenIdConnect::TokenValidatedContext ^, System::Threading::Tasks::Task ^> ^ get(); void set(Func<Microsoft::AspNetCore::Authentication::OpenIdConnect::TokenValidatedContext ^, System::Threading::Tasks::Task ^> ^ value); };
public Func<Microsoft.AspNetCore.Authentication.OpenIdConnect.TokenValidatedContext,System.Threading.Tasks.Task> OnTokenValidated { get; set; }
member this.OnTokenValidated : Func<Microsoft.AspNetCore.Authentication.OpenIdConnect.TokenValidatedContext, System.Threading.Tasks.Task> with get, set
Public Property OnTokenValidated As Func(Of TokenValidatedContext, Task)

属性值

适用于