1 instantiation of TokenOptions
Microsoft.Extensions.Identity.Core (1)
IdentityOptions.cs (1)
57
public TokenOptions Tokens { get; set; } = new
TokenOptions
();
13 references to TokenOptions
Microsoft.AspNetCore.Identity (4)
IdentityBuilderExtensions.cs (4)
34
return builder.AddTokenProvider(
TokenOptions
.DefaultProvider, dataProtectionProviderType)
35
.AddTokenProvider(
TokenOptions
.DefaultEmailProvider, emailTokenProviderType)
36
.AddTokenProvider(
TokenOptions
.DefaultPhoneProvider, phoneNumberProviderType)
37
.AddTokenProvider(
TokenOptions
.DefaultAuthenticatorProvider, authenticatorProviderType);
Microsoft.AspNetCore.Identity.Test (5)
SignInManagerTest.cs (3)
362
manager.Setup(m => m.VerifyTwoFactorTokenAsync(user, providerName ??
TokenOptions
.DefaultAuthenticatorProvider, code)).ReturnsAsync(true).Verifiable();
404
manager.Setup(m => m.VerifyTwoFactorTokenAsync(user, providerName ??
TokenOptions
.DefaultAuthenticatorProvider, code)).ReturnsAsync(false).Verifiable();
443
manager.Setup(m => m.VerifyTwoFactorTokenAsync(user, providerName ??
TokenOptions
.DefaultAuthenticatorProvider, code)).ReturnsAsync(false).Verifiable();
UserManagerTest.cs (2)
893
services.AddIdentity<PocoUser, PocoRole>(o => o.Tokens.ProviderMap.Add(
TokenOptions
.DefaultProvider, new TokenProviderDescriptor(typeof(ATokenProvider))
898
await Assert.ThrowsAsync<NotImplementedException>(() => manager.GenerateUserTokenAsync(new PocoUser(),
TokenOptions
.DefaultProvider, "purpose"));
Microsoft.Extensions.Identity.Core (4)
IdentityOptions.cs (3)
52
/// Gets or sets the <see cref="
TokenOptions
"/> for the identity system.
55
/// The <see cref="
TokenOptions
"/> for the identity system.
57
public
TokenOptions
Tokens { get; set; } = new TokenOptions();
TokenProviderDescriptor.cs (1)
10
/// Used to represents a token provider in <see cref="
TokenOptions
"/>'s TokenMap.