15 references to GetValidTwoFactorProvidersAsync
IdentitySample.Mvc (1)
Controllers\AccountController.cs (1)
354
var 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)
1713
var factors = await manager.
GetValidTwoFactorProvidersAsync
(user);
1809
var factors = await manager.
GetValidTwoFactorProvidersAsync
(user);
1816
factors = await manager.
GetValidTwoFactorProvidersAsync
(user);
1823
factors = await manager.
GetValidTwoFactorProvidersAsync
(user);
1827
factors = await manager.
GetValidTwoFactorProvidersAsync
(user);
1832
factors = await manager.
GetValidTwoFactorProvidersAsync
(user);
Microsoft.AspNetCore.Identity.Test (7)
SignInManagerTest.cs (6)
209
manager.Setup(m => m.
GetValidTwoFactorProvidersAsync
(user)).ReturnsAsync(new string[1] { "Fake" }).Verifiable();
275
manager.Setup(m => m.
GetValidTwoFactorProvidersAsync
(user)).Returns(Task.FromResult(providers)).Verifiable();
279
manager.Setup(m => m.
GetValidTwoFactorProvidersAsync
(user)).ReturnsAsync(new string[1] { "Fake" }).Verifiable();
313
manager.Setup(m => m.
GetValidTwoFactorProvidersAsync
(user)).Returns(Task.FromResult(providers)).Verifiable();
488
.Setup(m => m.
GetValidTwoFactorProvidersAsync
(user))
782
manager.Setup(m => m.
GetValidTwoFactorProvidersAsync
(user)).Returns(Task.FromResult(providers)).Verifiable();
UserManagerTest.cs (1)
1125
async () => await manager.
GetValidTwoFactorProvidersAsync
(null));