8 implementations of IUserTwoFactorTokenProvider
Microsoft.AspNetCore.Identity (1)
DataProtectorTokenProvider.cs (1)
16public class DataProtectorTokenProvider<TUser> : IUserTwoFactorTokenProvider<TUser> where TUser : class
Microsoft.AspNetCore.Identity.FunctionalTests (1)
MapIdentityApiTests.cs (1)
1486private sealed class TestTokenProvider<TUser> : IUserTwoFactorTokenProvider<TUser>
Microsoft.AspNetCore.Identity.Specification.Tests (2)
UserManagerSpecificationTests.cs (2)
959private sealed class StaticTokenProvider : IUserTwoFactorTokenProvider<TUser> 1413private sealed class YesPhoneNumberProvider : IUserTwoFactorTokenProvider<TUser>
Microsoft.AspNetCore.Identity.Test (2)
UserManagerTest.cs (2)
769private class ATokenProvider : IUserTwoFactorTokenProvider<PocoUser> 1468private class NoOpTokenProvider : IUserTwoFactorTokenProvider<PocoUser>
Microsoft.Extensions.Identity.Core (2)
AuthenticatorTokenProvider.cs (1)
13public class AuthenticatorTokenProvider<TUser> : IUserTwoFactorTokenProvider<TUser> where TUser : class
TotpSecurityStampBasedTokenProvider.cs (1)
15public abstract class TotpSecurityStampBasedTokenProvider<TUser> : IUserTwoFactorTokenProvider<TUser>
18 references to IUserTwoFactorTokenProvider
Microsoft.Extensions.Identity.Core (18)
IdentityBuilder.cs (2)
141/// <param name="provider">The type of the <see cref="IUserTwoFactorTokenProvider{TUser}"/> to add.</param> 146if (!typeof(IUserTwoFactorTokenProvider<>).MakeGenericType(UserType).IsAssignableFrom(provider))
IUserTwoFactorTokenProvider.cs (1)
30/// Implementations of <see cref="IUserTwoFactorTokenProvider{TUser}"/> should validate that purpose is not null or empty to
TokenOptions.cs (3)
42/// The <see cref="IUserTwoFactorTokenProvider{TUser}"/> used to generate tokens used in account confirmation emails. 47/// Gets or sets the <see cref="IUserTwoFactorTokenProvider{TUser}"/> used to generate tokens used in password reset emails. 50/// The <see cref="IUserTwoFactorTokenProvider{TUser}"/> used to generate tokens used in password reset emails.
TotpSecurityStampBasedTokenProvider.cs (1)
34/// Implementations of <see cref="IUserTwoFactorTokenProvider{TUser}"/> should validate that purpose is not null or empty to
UserManager.cs (11)
43private readonly Dictionary<string, IUserTwoFactorTokenProvider<TUser>> _tokenProviders = 44new Dictionary<string, IUserTwoFactorTokenProvider<TUser>>(); 109var provider = description.ProviderInstance as IUserTwoFactorTokenProvider<TUser>; 110if (provider == null && description.GetProviderType<IUserTwoFactorTokenProvider<TUser>>() is Type providerType) 112provider = (IUserTwoFactorTokenProvider<TUser>)services.GetRequiredService(providerType); 1555if (!_tokenProviders.TryGetValue(tokenProvider, out var provider)) 1585if (!_tokenProviders.TryGetValue(tokenProvider, out var provider)) 1598public virtual void RegisterTokenProvider(string providerName, IUserTwoFactorTokenProvider<TUser> provider) 1643if (!_tokenProviders.TryGetValue(tokenProvider, out var provider)) 1670if (!_tokenProviders.TryGetValue(tokenProvider, out var provider))