32 references to Tokens
Identity.ExternalClaims (1)
Pages\Account\Manage\EnableAuthenticator.cshtml.cs (1)
91
user, _userManager.Options.
Tokens
.AuthenticatorTokenProvider, verificationCode);
Microsoft.AspNetCore.Identity (2)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
284
if (!await userManager.VerifyTwoFactorTokenAsync(user, userManager.Options.
Tokens
.AuthenticatorTokenProvider, tfaRequest.TwoFactorCode))
SignInManager.cs (1)
549
if (await UserManager.VerifyTwoFactorTokenAsync(user, Options.
Tokens
.AuthenticatorTokenProvider, code))
Microsoft.AspNetCore.Identity.Specification.Tests (9)
UserManagerSpecificationTests.cs (9)
501
manager.Options.
Tokens
.PasswordResetTokenProvider = "Static";
991
manager.Options.
Tokens
.PasswordResetTokenProvider = "Static";
1016
manager.Options.
Tokens
.PasswordResetTokenProvider = "Static";
1042
manager.Options.
Tokens
.PasswordResetTokenProvider = "Static";
1092
manager.Options.
Tokens
.EmailConfirmationTokenProvider = "Static";
1114
manager.Options.
Tokens
.EmailConfirmationTokenProvider = "Static";
1434
manager.Options.
Tokens
.ChangePhoneNumberTokenProvider = "Yes";
1545
o => o.
Tokens
.ProviderMap["NewProvider2"] = new TokenProviderDescriptor(typeof(EmailTokenProvider<TUser>))));
1546
manager.Options.
Tokens
.ChangeEmailTokenProvider = "NewProvider2";
Microsoft.AspNetCore.Identity.Test (6)
IdentityBuilderTest.cs (1)
246
var tokenProviders = provider.GetRequiredService<IOptions<IdentityOptions>>().Value.
Tokens
.ProviderMap.Values;
SignInManagerTest.cs (3)
371
helper.Options.
Tokens
.AuthenticatorTokenProvider = providerName;
413
helper.Options.
Tokens
.AuthenticatorTokenProvider = providerName;
452
helper.Options.
Tokens
.AuthenticatorTokenProvider = providerName;
UserManagerTest.cs (2)
796
services.AddIdentity<PocoUser, PocoRole>(o => o.
Tokens
.ProviderMap.Add("A", new TokenProviderDescriptor(typeof(ATokenProvider))
893
services.AddIdentity<PocoUser, PocoRole>(o => o.
Tokens
.ProviderMap.Add(TokenOptions.DefaultProvider, new TokenProviderDescriptor(typeof(ATokenProvider))
Microsoft.AspNetCore.Identity.UI (2)
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (1)
134
user, _userManager.Options.
Tokens
.AuthenticatorTokenProvider, verificationCode);
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (1)
134
user, _userManager.Options.
Tokens
.AuthenticatorTokenProvider, verificationCode);
Microsoft.Extensions.Identity.Core (12)
IdentityBuilder.cs (2)
154
if (options.
Tokens
.ProviderMap.TryGetValue(providerName, out var descriptor))
161
options.
Tokens
.ProviderMap[providerName] = new TokenProviderDescriptor(provider);
UserManager.cs (10)
105
foreach (var providerName in Options.
Tokens
.ProviderMap.Keys)
107
var description = Options.
Tokens
.ProviderMap[providerName];
864
return GenerateUserTokenAsync(user, Options.
Tokens
.PasswordResetTokenProvider, ResetPasswordTokenPurpose);
884
if (!await VerifyUserTokenAsync(user, Options.
Tokens
.PasswordResetTokenProvider, ResetPasswordTokenPurpose, token).ConfigureAwait(false))
1341
return GenerateUserTokenAsync(user, Options.
Tokens
.EmailConfirmationTokenProvider, ConfirmEmailTokenPurpose);
1359
if (!await VerifyUserTokenAsync(user, Options.
Tokens
.EmailConfirmationTokenProvider, ConfirmEmailTokenPurpose, token).ConfigureAwait(false))
1395
return GenerateUserTokenAsync(user, Options.
Tokens
.ChangeEmailTokenProvider, GetChangeEmailTokenPurpose(newEmail));
1414
if (!await VerifyUserTokenAsync(user, Options.
Tokens
.ChangeEmailTokenProvider, GetChangeEmailTokenPurpose(newEmail), token).ConfigureAwait(false))
1514
return GenerateUserTokenAsync(user, Options.
Tokens
.ChangePhoneNumberTokenProvider, ChangePhoneNumberTokenPurpose + ":" + phoneNumber);
1534
return VerifyUserTokenAsync(user, Options.
Tokens
.ChangePhoneNumberTokenProvider, ChangePhoneNumberTokenPurpose + ":" + phoneNumber, token);