SecurityStampValidator.ValidateAsync<TValidator> 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于根据用户存储的安全标记验证 TwoFactorUserIdScheme 和 TwoFactorRememberMeScheme 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
包含 要验证的 ClaimsPrincipal 和 AuthenticationProperties 的上下文。