Compartir a través de


SecurityStampValidator.ValidateAsync<TValidator> Método

Definición

Se usa para validar las cookies TwoFactorUserIdScheme y TwoFactorRememberMeScheme con la marca de seguridad almacenada del usuario.

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

Parámetros de tipo

TValidator

Parámetros

context
CookieValidatePrincipalContext

Contexto que contiene y ClaimsPrincipalAuthenticationProperties que se va a validar.

Devoluciones

Se aplica a