15 references to GetValidTwoFactorProvidersAsync
IdentitySample.Mvc (1)
Controllers\AccountController.cs (1)
354var userFactors = await _userManager.GetValidTwoFactorProvidersAsync(user);
Microsoft.AspNetCore.Identity (1)
SignInManager.cs (1)
1191(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)
256manager.Setup(m => m.GetValidTwoFactorProvidersAsync(user)).ReturnsAsync(new string[1] { "Fake" }).Verifiable(); 322manager.Setup(m => m.GetValidTwoFactorProvidersAsync(user)).Returns(Task.FromResult(providers)).Verifiable(); 326manager.Setup(m => m.GetValidTwoFactorProvidersAsync(user)).ReturnsAsync(new string[1] { "Fake" }).Verifiable(); 364manager.Setup(m => m.GetValidTwoFactorProvidersAsync(user)).Returns(Task.FromResult(providers)).Verifiable(); 674.Setup(m => m.GetValidTwoFactorProvidersAsync(user)) 1120manager.Setup(m => m.GetValidTwoFactorProvidersAsync(user)).Returns(Task.FromResult(providers)).Verifiable();
UserManagerTest.cs (1)
1460async () => await manager.GetValidTwoFactorProvidersAsync(null));