9 instantiations of CookieValidatePrincipalContext
Microsoft.AspNetCore.Authentication.Cookies (1)
CookieAuthenticationHandler.cs (1)
213
var context = new
CookieValidatePrincipalContext
(Context, Scheme, Options, result.Ticket);
Microsoft.AspNetCore.Identity.Test (8)
SecurityStampValidatorTest.cs (8)
64
var context = new
CookieValidatePrincipalContext
(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
86
var context = new
CookieValidatePrincipalContext
(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
144
var context = new
CookieValidatePrincipalContext
(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
185
var context = new
CookieValidatePrincipalContext
(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
226
var context = new
CookieValidatePrincipalContext
(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
263
var context = new
CookieValidatePrincipalContext
(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
305
var context = new
CookieValidatePrincipalContext
(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(),
350
var context = new
CookieValidatePrincipalContext
(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
20 references to CookieValidatePrincipalContext
Microsoft.AspNetCore.Authentication.Cookies (4)
CookieAuthenticationEvents.cs (3)
17
public Func<
CookieValidatePrincipalContext
, Task> OnValidatePrincipal { get; set; } = context => Task.CompletedTask;
114
/// <param name="context">The <see cref="
CookieValidatePrincipalContext
"/>.</param>
115
public virtual Task ValidatePrincipal(
CookieValidatePrincipalContext
context) => OnValidatePrincipal(context);
CookieAuthenticationHandler.cs (1)
213
var
context = new CookieValidatePrincipalContext(Context, Scheme, Options, result.Ticket);
Microsoft.AspNetCore.Identity (8)
ISecurityStampValidator.cs (1)
22
Task ValidateAsync(
CookieValidatePrincipalContext
context);
SecurityStampValidator.cs (5)
90
/// <param name="context">The <see cref="
CookieValidatePrincipalContext
"/>.</param>
92
protected virtual async Task SecurityStampVerified(TUser user,
CookieValidatePrincipalContext
context)
136
public virtual async Task ValidateAsync(
CookieValidatePrincipalContext
context)
178
public static Task ValidatePrincipalAsync(
CookieValidatePrincipalContext
context)
190
public static Task ValidateAsync<TValidator>(
CookieValidatePrincipalContext
context) where TValidator : ISecurityStampValidator
TwoFactorSecurityStampValidator.cs (2)
50
/// <param name="context">The <see cref="
CookieValidatePrincipalContext
"/>.</param>
52
protected override Task SecurityStampVerified(TUser user,
CookieValidatePrincipalContext
context)
Microsoft.AspNetCore.Identity.Test (8)
SecurityStampValidatorTest.cs (8)
64
var
context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
86
var
context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
144
var
context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
185
var
context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
226
var
context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
263
var
context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);
305
var
context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(),
350
var
context = new CookieValidatePrincipalContext(httpContext.Object, new AuthenticationSchemeBuilder(IdentityConstants.ApplicationScheme) { HandlerType = typeof(NoopHandler) }.Build(), new CookieAuthenticationOptions(), ticket);