1 implementation of ITwoFactorSecurityStampValidator
Microsoft.AspNetCore.Identity (1)
TwoFactorSecurityStampValidator.cs (1)
16
public class TwoFactorSecurityStampValidator<TUser> : SecurityStampValidator<TUser>,
ITwoFactorSecurityStampValidator
where TUser : class
8 references to ITwoFactorSecurityStampValidator
Microsoft.AspNetCore.Identity (4)
IdentityBuilderExtensions.cs (1)
45
builder.Services.AddScoped(typeof(
ITwoFactorSecurityStampValidator
), typeof(TwoFactorSecurityStampValidator<>).MakeGenericType(builder.UserType));
IdentityCookiesBuilderExtensions.cs (1)
87
OnValidatePrincipal = SecurityStampValidator.ValidateAsync<
ITwoFactorSecurityStampValidator
>
IdentityServiceCollectionExtensions.cs (2)
77
OnValidatePrincipal = SecurityStampValidator.ValidateAsync<
ITwoFactorSecurityStampValidator
>
102
services.TryAddScoped<
ITwoFactorSecurityStampValidator
, TwoFactorSecurityStampValidator<TUser>>();
Microsoft.AspNetCore.Identity.Test (4)
IdentityBuilderTest.cs (2)
214
Assert.IsType<TwoFactorSecurityStampValidator<PocoUser>>(provider.GetRequiredService<
ITwoFactorSecurityStampValidator
>());
234
Assert.IsType<TwoFactorSecurityStampValidator<PocoUser>>(provider.GetRequiredService<
ITwoFactorSecurityStampValidator
>());
SecurityStampValidatorTest.cs (2)
342
services.AddSingleton<
ITwoFactorSecurityStampValidator
>(new TwoFactorSecurityStampValidator<PocoUser>(options.Object, signInManager.Object, new LoggerFactory()));
354
await SecurityStampValidator.ValidateAsync<
ITwoFactorSecurityStampValidator
>(context);