SecurityStampValidator<TUser>.ValidateAsync(CookieValidatePrincipalContext) 方法

定义

将标识的安全标记作为异步操作进行验证,如果验证成功,则重新生成标识,否则将拒绝标识。

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

表示 Task 异步验证操作。

实现

适用于