41 references to PasswordVerificationResult
Microsoft.AspNetCore.Identity.Test (18)
PasswordHasherTest.cs (17)
59var successResult = hasher.VerifyHashedPassword(null, hashedPassword, "password 1");
60Assert.Equal(PasswordVerificationResult.Success, successResult);
63var failedResult = hasher.VerifyHashedPassword(null, hashedPassword, "password 2");
64Assert.Equal(PasswordVerificationResult.Failed, failedResult);
121var result = hasher.VerifyHashedPassword(null, hashedPassword, Plaintext_Password);
124Assert.Equal(PasswordVerificationResult.Failed, result);
140var result = hasher.VerifyHashedPassword(null, hashedPassword, Plaintext_Password);
143Assert.Equal(PasswordVerificationResult.Success, result);
148[InlineData(V2_SHA1_1000iter_128salt_256subkey, PasswordVerificationResult.SuccessRehashNeeded)]
150[InlineData(V3_SHA1_250iter_128salt_128subkey, PasswordVerificationResult.SuccessRehashNeeded)]
151[InlineData(V3_SHA256_250000iter_256salt_256subkey, PasswordVerificationResult.SuccessRehashNeeded)]
152[InlineData(V3_SHA512_50iter_128salt_128subkey, PasswordVerificationResult.SuccessRehashNeeded)]
153[InlineData(V3_SHA512_250iter_256salt_512subkey, PasswordVerificationResult.SuccessRehashNeeded)]
154[InlineData(V3_SHA512_10000iter_128salt_256subkey, PasswordVerificationResult.SuccessRehashNeeded)]
155[InlineData(V3_SHA512_100000iter_128salt_256subkey, PasswordVerificationResult.Success)]
156public void VerifyHashedPassword_Version3CompatMode_SuccessCases(string hashedPassword, PasswordVerificationResult expectedResult)
162var actualResult = hasher.VerifyHashedPassword(null, hashedPassword, Plaintext_Password);
Microsoft.Extensions.Identity.Core (23)