共用方式為


SecurityStampValidator<TUser>.ValidateAsync 方法

定義

驗證身分識別的安全性戳記做為非同步作業,並在驗證成功時重建身分識別,否則會拒絕身分識別。

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

參數

context
CookieValidatePrincipalContext

包含 ClaimsPrincipal 要驗證之 和 AuthenticationProperties 的內容。

傳回

Task 表示非同步驗證作業。

實作

適用於