18 references to PasswordHasherCompatibilityMode
Microsoft.AspNetCore.Identity.Test (11)
PasswordHasherTest.cs (11)
31new PasswordHasher(compatMode: (PasswordHasherCompatibilityMode)(-1)); 50[InlineData(PasswordHasherCompatibilityMode.IdentityV2)] 51[InlineData(PasswordHasherCompatibilityMode.IdentityV3)] 52public void FullRoundTrip(PasswordHasherCompatibilityMode compatMode) 84var hasher = new PasswordHasher(compatMode: PasswordHasherCompatibilityMode.IdentityV2); 97var hasher = new PasswordHasher(compatMode: PasswordHasherCompatibilityMode.IdentityV3); 137var hasher = new PasswordHasher(compatMode: PasswordHasherCompatibilityMode.IdentityV2); 159var hasher = new PasswordHasher(compatMode: PasswordHasherCompatibilityMode.IdentityV3); 170public PasswordHasher(PasswordHasherCompatibilityMode? compatMode = null, int? iterCount = null) 175private static IOptions<PasswordHasherOptions> BuildOptions(PasswordHasherCompatibilityMode? compatMode, int? iterCount) 180options.Value.CompatibilityMode = (PasswordHasherCompatibilityMode)compatMode;
Microsoft.Extensions.Identity.Core (7)
PasswordHasher.cs (5)
35private readonly PasswordHasherCompatibilityMode _compatibilityMode; 52case PasswordHasherCompatibilityMode.IdentityV2: 56case PasswordHasherCompatibilityMode.IdentityV3: 103if (_compatibilityMode == PasswordHasherCompatibilityMode.IdentityV2) 184return (_compatibilityMode == PasswordHasherCompatibilityMode.IdentityV3)
PasswordHasherOptions.cs (2)
21public PasswordHasherCompatibilityMode CompatibilityMode { get; set; } = PasswordHasherCompatibilityMode.IdentityV3;