SecurityStampValidator<TUser>.ValidateAsync Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Validates a security stamp of an identity as an asynchronous operation, and rebuilds the identity if the validation succeeds, otherwise rejects the identity.
public:
virtual System::Threading::Tasks::Task ^ ValidateAsync(Microsoft::AspNetCore::Authentication::Cookies::CookieValidatePrincipalContext ^ context);
C#
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
The context containing the ClaimsPrincipal and AuthenticationProperties to validate.
The Task that represents the asynchronous validation operation.
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 |