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