9 references to GenerateUserTokenAsync
Microsoft.AspNetCore.Identity.Specification.Tests (2)
UserManagerSpecificationTests.cs (2)
1069
var token = await manager.
GenerateUserTokenAsync
(user, "Static", "test");
1699
() => manager.
GenerateUserTokenAsync
(user, "bogus", "bogus"));
Microsoft.AspNetCore.Identity.Test (3)
UserManagerTest.cs (3)
714
async () => await manager.
GenerateUserTokenAsync
(user, "bogus", null));
801
await Assert.ThrowsAsync<NotImplementedException>(() => manager.
GenerateUserTokenAsync
(new PocoUser(), "A", "purpose"));
898
await Assert.ThrowsAsync<NotImplementedException>(() => manager.
GenerateUserTokenAsync
(new PocoUser(), TokenOptions.DefaultProvider, "purpose"));
Microsoft.Extensions.Identity.Core (4)
UserManager.cs (4)
864
return
GenerateUserTokenAsync
(user, Options.Tokens.PasswordResetTokenProvider, ResetPasswordTokenPurpose);
1341
return
GenerateUserTokenAsync
(user, Options.Tokens.EmailConfirmationTokenProvider, ConfirmEmailTokenPurpose);
1395
return
GenerateUserTokenAsync
(user, Options.Tokens.ChangeEmailTokenProvider, GetChangeEmailTokenPurpose(newEmail));
1514
return
GenerateUserTokenAsync
(user, Options.Tokens.ChangePhoneNumberTokenProvider, ChangePhoneNumberTokenPurpose + ":" + phoneNumber);