SecurityStampValidator.ValidateAsync<TValidator> 方法

定义

用于根据用户存储的安全标记验证 TwoFactorUserIdSchemeTwoFactorRememberMeScheme Cookie。

public:
generic <typename TValidator>
 where TValidator : Microsoft::AspNetCore::Identity::ISecurityStampValidator static System::Threading::Tasks::Task ^ ValidateAsync(Microsoft::AspNetCore::Authentication::Cookies::CookieValidatePrincipalContext ^ context);
public static System.Threading.Tasks.Task ValidateAsync<TValidator> (Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext context) where TValidator : Microsoft.AspNetCore.Identity.ISecurityStampValidator;
static member ValidateAsync : Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext -> System.Threading.Tasks.Task (requires 'Validator :> Microsoft.AspNetCore.Identity.ISecurityStampValidator)
Public Shared Function ValidateAsync(Of TValidator As ISecurityStampValidator) (context As CookieValidatePrincipalContext) As Task

类型参数

TValidator

参数

context
CookieValidatePrincipalContext

包含 要验证的 ClaimsPrincipalAuthenticationProperties 的上下文。

返回

适用于