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