15 references to GetValidTwoFactorProvidersAsync
IdentitySample.Mvc (1)
Controllers\AccountController.cs (1)
354var userFactors = await _userManager.GetValidTwoFactorProvidersAsync(user);
Microsoft.AspNetCore.Identity (1)
SignInManager.cs (1)
1201(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)
227manager.Setup(m => m.GetValidTwoFactorProvidersAsync(user)).ReturnsAsync(new string[1] { "Fake" }).Verifiable(); 293manager.Setup(m => m.GetValidTwoFactorProvidersAsync(user)).Returns(Task.FromResult(providers)).Verifiable(); 297manager.Setup(m => m.GetValidTwoFactorProvidersAsync(user)).ReturnsAsync(new string[1] { "Fake" }).Verifiable(); 331manager.Setup(m => m.GetValidTwoFactorProvidersAsync(user)).Returns(Task.FromResult(providers)).Verifiable(); 538.Setup(m => m.GetValidTwoFactorProvidersAsync(user)) 884manager.Setup(m => m.GetValidTwoFactorProvidersAsync(user)).Returns(Task.FromResult(providers)).Verifiable();
UserManagerTest.cs (1)
1204async () => await manager.GetValidTwoFactorProvidersAsync(null));