6 implementations of IPasswordValidator
Microsoft.AspNetCore.Identity.Specification.Tests (3)
IdentitySpecificationTestBase.cs (1)
139IPasswordValidator<TUser>
UserManagerSpecificationTests.cs (2)
141IPasswordValidator<TUser> 157IPasswordValidator<TUser>
Microsoft.AspNetCore.Identity.Test (2)
IdentityBuilderTest.cs (1)
232private class MyUberThingy : IUserValidator<PocoUser>, IPasswordValidator<PocoUser>, IRoleValidator<PocoRole>, IUserStore<PocoUser>, IRoleStore<PocoRole>
UserManagerTest.cs (1)
1185private class BadPasswordValidator<TUser> : IPasswordValidator<TUser> where TUser : class
Microsoft.Extensions.Identity.Core (1)
PasswordValidator.cs (1)
16public class PasswordValidator<TUser> : IPasswordValidator<TUser> where TUser : class
15 references to IPasswordValidator
Microsoft.AspNetCore.Identity (3)
AspNetUserManager.cs (2)
26/// <param name="passwordValidators">A collection of <see cref="IPasswordValidator{TUser}"/> to validate passwords against.</param> 35IEnumerable<IPasswordValidator<TUser>> passwordValidators,
IdentityServiceCollectionExtensions.cs (1)
94services.TryAddScoped<IPasswordValidator<TUser>, PasswordValidator<TUser>>();
Microsoft.AspNetCore.Identity.Test (2)
IdentityBuilderTest.cs (2)
130var thingy = services.BuildServiceProvider().GetRequiredService<IPasswordValidator<PocoUser>>() as MyUberThingy; 189var pwdValidator = provider.GetRequiredService<IPasswordValidator<PocoUser>>() as PasswordValidator<PocoUser>;
Microsoft.Extensions.Identity.Core (10)
IdentityBuilder.cs (2)
111/// Adds an <see cref="IPasswordValidator{TUser}"/> for the <see cref="UserType"/>. 117=> AddScoped(typeof(IPasswordValidator<>).MakeGenericType(UserType), typeof(TValidator));
IdentityServiceCollectionExtensions.cs (1)
41services.TryAddScoped<IPasswordValidator<TUser>, PasswordValidator<TUser>>();
UserManager.cs (7)
64/// <param name="passwordValidators">A collection of <see cref="IPasswordValidator{TUser}"/> to validate passwords against.</param> 73IEnumerable<IPasswordValidator<TUser>> passwordValidators, 96foreach (var v in passwordValidators) 160/// The <see cref="IPasswordValidator{TUser}"/> used to validate passwords. 162public IList<IPasswordValidator<TUser>> PasswordValidators { get; } = new List<IPasswordValidator<TUser>>(); 2341foreach (var v in PasswordValidators)