14 interfaces inheriting from IUserStore
Microsoft.Extensions.Identity.Core (14)
IProtectedUserStore.cs (1)
10public interface IProtectedUserStore<TUser> : IUserStore<TUser> where TUser : class
IQueryableUserStore.cs (1)
12public interface IQueryableUserStore<TUser> : IUserStore<TUser> where TUser : class
IUserAuthenticationTokenStore.cs (1)
13public interface IUserAuthenticationTokenStore<TUser> : IUserStore<TUser> where TUser : class
IUserAuthenticatorKeyStore.cs (1)
13public interface IUserAuthenticatorKeyStore<TUser> : IUserStore<TUser> where TUser : class
IUserClaimStore.cs (1)
15public interface IUserClaimStore<TUser> : IUserStore<TUser> where TUser : class
IUserEmailStore.cs (1)
13public interface IUserEmailStore<TUser> : IUserStore<TUser> where TUser : class
IUserLockoutStore.cs (1)
15public interface IUserLockoutStore<TUser> : IUserStore<TUser> where TUser : class
IUserLoginStore.cs (1)
15public interface IUserLoginStore<TUser> : IUserStore<TUser> where TUser : class
IUserPasswordStore.cs (1)
13public interface IUserPasswordStore<TUser> : IUserStore<TUser> where TUser : class
IUserPhoneNumberStore.cs (1)
13public interface IUserPhoneNumberStore<TUser> : IUserStore<TUser> where TUser : class
IUserRoleStore.cs (1)
14public interface IUserRoleStore<TUser> : IUserStore<TUser> where TUser : class
IUserSecurityStampStore.cs (1)
13public interface IUserSecurityStampStore<TUser> : IUserStore<TUser> where TUser : class
IUserTwoFactorRecoveryCodeStore.cs (1)
14public interface IUserTwoFactorRecoveryCodeStore<TUser> : IUserStore<TUser> where TUser : class
IUserTwoFactorStore.cs (1)
13public interface IUserTwoFactorStore<TUser> : IUserStore<TUser> where TUser : class
2 implementations of IUserStore
Microsoft.AspNetCore.Identity.Test (2)
IdentityBuilderTest.cs (1)
271private class MyUberThingy : IUserValidator<PocoUser>, IPasswordValidator<PocoUser>, IRoleValidator<PocoRole>, IUserStore<PocoUser>, IRoleStore<PocoRole>
NoopUserStore.cs (1)
6public class NoopUserStore : IUserStore<PocoUser>
66 references to IUserStore
Identity.DefaultUI.WebSite (1)
PocoUserStartup.cs (1)
26services.AddSingleton<IUserStore<Microsoft.AspNetCore.Identity.Test.PocoUser>, InMemoryUserStore<Microsoft.AspNetCore.Identity.Test.PocoUser>>();
Microsoft.AspNetCore.Identity (3)
AspNetUserManager.cs (1)
31public AspNetUserManager(IUserStore<TUser> store,
IdentityApiEndpointRouteBuilderExtensions.cs (2)
67var userStore = sp.GetRequiredService<IUserStore<TUser>>();
Microsoft.AspNetCore.Identity.EntityFrameworkCore (2)
IdentityEntityFrameworkBuilderExtensions.cs (2)
70services.TryAddScoped(typeof(IUserStore<>).MakeGenericType(userType), userStoreType); 90services.TryAddScoped(typeof(IUserStore<>).MakeGenericType(userType), userStoreType);
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (16)
DefaultPocoTest.cs (2)
44var userStore = _builder.ApplicationServices.GetRequiredService<IUserStore<IdentityUser>>();
SqlStoreOnlyUsersTestBase.cs (1)
64services.AddSingleton<IUserStore<TUser>>(new UserOnlyStore<TUser, TestUserDbContext, TKey>((TestUserDbContext)context));
SqlStoreTestBase.cs (1)
109services.AddSingleton<IUserStore<TUser>>(new UserStore<TUser, TRole, TestDbContext, TKey>((TestDbContext)context));
src\Identity\test\Shared\MockHelpers.cs (3)
17var store = new Mock<IUserStore<TUser>>(); 33public static UserManager<TUser> TestUserManager<TUser>(IUserStore<TUser> store = null) where TUser : class 35store = store ?? new Mock<IUserStore<TUser>>().Object;
UserOnlyCustomContextTest.cs (2)
89var userStore = _builder.ApplicationServices.GetRequiredService<IUserStore<IdentityUser>>();
UserOnlyTest.cs (4)
50var userStore = _builder.ApplicationServices.GetRequiredService<IUserStore<IdentityUser>>(); 66var userStore = _builder.ApplicationServices.GetRequiredService<IUserStore<IdentityUser>>();
UserStoreGuidKeyTest.cs (1)
46services.AddSingleton<IUserStore<GuidUser>>(new ApplicationUserStore((TestDbContext)context));
UserStoreTest.cs (1)
55services.AddSingleton<IUserStore<IdentityUser>>(new UserStore<IdentityUser, IdentityRole, IdentityDbContext>((IdentityDbContext)context));
UserStoreWithGenericsTest.cs (1)
36services.AddSingleton<IUserStore<IdentityUserWithGenerics>>(new UserStoreWithGenerics((ContextWithGenerics)context, "TestContext"));
Microsoft.AspNetCore.Identity.InMemory.Test (8)
ControllerTest.cs (2)
37services.AddSingleton<IUserStore<PocoUser>, InMemoryStore<PocoUser, PocoRole>>(); 88services.AddSingleton<IUserStore<PocoUser>, InMemoryStore<PocoUser, PocoRole>>();
FunctionalTest.cs (1)
392services.AddSingleton<IUserStore<PocoUser>>(store);
InMemoryStoreTest.cs (1)
20services.AddSingleton<IUserStore<PocoUser>>((InMemoryStore<PocoUser, PocoRole>)context);
InMemoryUserStoreTest.cs (1)
21services.AddSingleton<IUserStore<PocoUser>>((InMemoryUserStore<PocoUser>)context);
src\Identity\test\Shared\MockHelpers.cs (3)
17var store = new Mock<IUserStore<TUser>>(); 33public static UserManager<TUser> TestUserManager<TUser>(IUserStore<TUser> store = null) where TUser : class 35store = store ?? new Mock<IUserStore<TUser>>().Object;
Microsoft.AspNetCore.Identity.Test (20)
IdentityBuilderTest.cs (2)
59var thingy = services.BuildServiceProvider().GetRequiredService<IUserStore<PocoUser>>() as MyUberThingy; 401public MyUserManager(IUserStore<PocoUser> store) : base(store, null, null, null, null, null, null, null, null) { }
src\Identity\test\Shared\MockHelpers.cs (3)
17var store = new Mock<IUserStore<TUser>>(); 33public static UserManager<TUser> TestUserManager<TUser>(IUserStore<TUser> store = null) where TUser : class 35store = store ?? new Mock<IUserStore<TUser>>().Object;
UserManagerTest.cs (15)
20.AddTransient<IUserStore<PocoUser>, NoopUserStore>(); 35.AddTransient<IUserStore<PocoUser>, NoopUserStore>() 52public CustomUserManager() : base(new Mock<IUserStore<PocoUser>>().Object, null, null, null, null, null, null, null, null) 67var store = new Mock<IUserStore<PocoUser>>(); 127var store = new Mock<IUserStore<PocoUser>>(); 145var store = new Mock<IUserStore<PocoUser>>(); 187var store = new Mock<IUserStore<PocoUser>>(); 207var store = new Mock<IUserStore<PocoUser>>(); 225var store = new Mock<IUserStore<PocoUser>>(); 242var store = new Mock<IUserStore<PocoUser>>(); 735var store = new Mock<IUserStore<PocoUser>>(); 1713Task<IdentityResult> IUserStore<PocoUser>.CreateAsync(PocoUser user, CancellationToken cancellationToken) 1718Task<IdentityResult> IUserStore<PocoUser>.UpdateAsync(PocoUser user, CancellationToken cancellationToken) 1723Task<IdentityResult> IUserStore<PocoUser>.DeleteAsync(PocoUser user, CancellationToken cancellationToken) 1749.AddSingleton<IUserStore<PocoUser>>(store.Object)
Microsoft.AspNetCore.Identity.UI (12)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (2)
95private readonly IUserStore<TUser> _userStore; 103IUserStore<TUser> userStore,
Areas\Identity\Pages\V4\Account\Manage\ExternalLogins.cshtml.cs (2)
72private readonly IUserStore<TUser> _userStore; 77IUserStore<TUser> userStore)
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (2)
97private readonly IUserStore<TUser> _userStore; 104IUserStore<TUser> userStore,
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (2)
95private readonly IUserStore<TUser> _userStore; 103IUserStore<TUser> userStore,
Areas\Identity\Pages\V5\Account\Manage\ExternalLogins.cshtml.cs (2)
72private readonly IUserStore<TUser> _userStore; 77IUserStore<TUser> userStore)
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (2)
97private readonly IUserStore<TUser> _userStore; 104IUserStore<TUser> userStore,
Microsoft.Extensions.Identity.Core (4)
IdentityBuilder.cs (2)
120/// Adds an <see cref="IUserStore{TUser}"/> for the <see cref="UserType"/>. 126=> AddScoped(typeof(IUserStore<>).MakeGenericType(UserType), typeof(TStore));
UserManager.cs (2)
69public UserManager(IUserStore<TUser> store, 139protected internal IUserStore<TUser> Store { get; set; }