15 references to GetValidTwoFactorProvidersAsync
IdentitySample.Mvc (1)
Controllers\AccountController.cs (1)
354var userFactors = await _userManager.GetValidTwoFactorProvidersAsync(user);
Microsoft.AspNetCore.Identity (1)
SignInManager.cs (1)
808(await UserManager.GetValidTwoFactorProvidersAsync(user)).Count > 0;
Microsoft.AspNetCore.Identity.Specification.Tests (6)
UserManagerSpecificationTests.cs (6)
1713var factors = await manager.GetValidTwoFactorProvidersAsync(user); 1809var factors = await manager.GetValidTwoFactorProvidersAsync(user); 1816factors = await manager.GetValidTwoFactorProvidersAsync(user); 1823factors = await manager.GetValidTwoFactorProvidersAsync(user); 1827factors = await manager.GetValidTwoFactorProvidersAsync(user); 1832factors = await manager.GetValidTwoFactorProvidersAsync(user);
Microsoft.AspNetCore.Identity.Test (7)
SignInManagerTest.cs (6)
209manager.Setup(m => m.GetValidTwoFactorProvidersAsync(user)).ReturnsAsync(new string[1] { "Fake" }).Verifiable(); 275manager.Setup(m => m.GetValidTwoFactorProvidersAsync(user)).Returns(Task.FromResult(providers)).Verifiable(); 279manager.Setup(m => m.GetValidTwoFactorProvidersAsync(user)).ReturnsAsync(new string[1] { "Fake" }).Verifiable(); 313manager.Setup(m => m.GetValidTwoFactorProvidersAsync(user)).Returns(Task.FromResult(providers)).Verifiable(); 488.Setup(m => m.GetValidTwoFactorProvidersAsync(user)) 782manager.Setup(m => m.GetValidTwoFactorProvidersAsync(user)).Returns(Task.FromResult(providers)).Verifiable();
UserManagerTest.cs (1)
1125async () => await manager.GetValidTwoFactorProvidersAsync(null));