SecurityStampValidator<TUser>.ValidateAsync Method

Definition

Validates a security stamp of an identity as an asynchronous operation, and rebuilds the identity if the validation succeeds, otherwise rejects the identity.

C#
public virtual System.Threading.Tasks.Task ValidateAsync (Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext context);

Parameters

context
CookieValidatePrincipalContext

The context containing the ClaimsPrincipal and AuthenticationProperties to validate.

Returns

The Task that represents the asynchronous validation operation.

Implements

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0