Class MemberSecurityStampValidator
A security stamp validator for the back office
Namespace: Umbraco.Cms.Web.Common.Security
Assembly: Umbraco.Web.Common.dll
Syntax
public class MemberSecurityStampValidator : SecurityStampValidator<MemberIdentityUser>
Constructors
View SourceMemberSecurityStampValidator(IOptions<MemberSecurityStampValidatorOptions>, MemberSignInManager, ILoggerFactory)
Declaration
public MemberSecurityStampValidator(IOptions<MemberSecurityStampValidatorOptions> options, MemberSignInManager signInManager, ILoggerFactory logger)
Parameters
| Type | Name | Description |
|---|---|---|
| IOptions<MemberSecurityStampValidatorOptions> | options | |
| MemberSignInManager | signInManager | |
| ILoggerFactory | logger |
Methods
View SourceValidateAsync(CookieValidatePrincipalContext)
Validates a security stamp of an identity as an asynchronous operation, and rebuilds the identity if the validation succeeds, otherwise rejects the identity.
Declaration
public override Task ValidateAsync(CookieValidatePrincipalContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| CookieValidatePrincipalContext | context | The context containing the System.Security.Claims.ClaimsPrincipal and Microsoft.AspNetCore.Authentication.AuthenticationProperties to validate. |
Returns
| Type | Description |
|---|---|
| Task | The System.Threading.Tasks.Task that represents the asynchronous validation operation. |