3 types derived from UserManager
Microsoft.AspNetCore.Identity (1)
AspNetUserManager.cs (1)
15public class AspNetUserManager<TUser> : UserManager<TUser>, IDisposable where TUser : class
Microsoft.AspNetCore.Identity.Test (2)
IdentityBuilderTest.cs (1)
399private class MyUserManager : UserManager<PocoUser>
UserManagerTest.cs (1)
50public class CustomUserManager : UserManager<PocoUser>
4 instantiations of UserManager
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
src\Identity\test\Shared\MockHelpers.cs (1)
45var userManager = new UserManager<TUser>(store, options.Object, new PasswordHasher<TUser>(),
Microsoft.AspNetCore.Identity.InMemory.Test (1)
src\Identity\test\Shared\MockHelpers.cs (1)
45var userManager = new UserManager<TUser>(store, options.Object, new PasswordHasher<TUser>(),
Microsoft.AspNetCore.Identity.Test (2)
src\Identity\test\Shared\MockHelpers.cs (1)
45var userManager = new UserManager<TUser>(store, options.Object, new PasswordHasher<TUser>(),
UserManagerTest.cs (1)
1019() => new UserManager<PocoUser>(null, null, null, null, null, null, null, null, null));
499 references to UserManager
Identity.DefaultUI.WebSite (1)
PocoUserStartup.cs (1)
25.AddUserManager<UserManager<Microsoft.AspNetCore.Identity.Test.PocoUser>>();
Identity.ExternalClaims (28)
Pages\Account\ConfirmEmail.cshtml.cs (2)
17private readonly UserManager<ApplicationUser> _userManager; 19public ConfirmEmailModel(UserManager<ApplicationUser> userManager)
Pages\Account\ExternalLogin.cshtml.cs (2)
20private readonly UserManager<ApplicationUser> _userManager; 25UserManager<ApplicationUser> userManager,
Pages\Account\ForgotPassword.cshtml.cs (2)
18private readonly UserManager<ApplicationUser> _userManager; 21public ForgotPasswordModel(UserManager<ApplicationUser> userManager, IEmailSender emailSender)
Pages\Account\Manage\ChangePassword.cshtml.cs (2)
19private readonly UserManager<ApplicationUser> _userManager; 24UserManager<ApplicationUser> userManager,
Pages\Account\Manage\Disable2fa.cshtml.cs (2)
18private readonly UserManager<ApplicationUser> _userManager; 22UserManager<ApplicationUser> userManager,
Pages\Account\Manage\EnableAuthenticator.cshtml.cs (2)
23private readonly UserManager<ApplicationUser> _userManager; 30UserManager<ApplicationUser> userManager,
Pages\Account\Manage\ExternalLogins.cshtml.cs (2)
18private readonly UserManager<ApplicationUser> _userManager; 22UserManager<ApplicationUser> userManager,
Pages\Account\Manage\GenerateRecoveryCodes.cshtml.cs (2)
18private readonly UserManager<ApplicationUser> _userManager; 22UserManager<ApplicationUser> userManager,
Pages\Account\Manage\Index.cshtml.cs (2)
20private readonly UserManager<ApplicationUser> _userManager; 25UserManager<ApplicationUser> userManager,
Pages\Account\Manage\ResetAuthenticator.cshtml.cs (2)
18UserManager<ApplicationUser> _userManager; 22UserManager<ApplicationUser> userManager,
Pages\Account\Manage\SetPassword.cshtml.cs (2)
18private readonly UserManager<ApplicationUser> _userManager; 22UserManager<ApplicationUser> userManager,
Pages\Account\Manage\TwoFactorAuthentication.cshtml.cs (2)
18private readonly UserManager<ApplicationUser> _userManager; 23UserManager<ApplicationUser> userManager,
Pages\Account\Register.cshtml.cs (2)
21private readonly UserManager<ApplicationUser> _userManager; 26UserManager<ApplicationUser> userManager,
Pages\Account\ResetPassword.cshtml.cs (2)
18private readonly UserManager<ApplicationUser> _userManager; 20public ResetPasswordModel(UserManager<ApplicationUser> userManager)
IdentitySample.DefaultUI (5)
Areas\Identity\Pages\Account\Manage\Index.cshtml.cs (2)
14private readonly UserManager<ApplicationUser> _userManager; 18UserManager<ApplicationUser> userManager,
Areas\Identity\Pages\Account\Register.cshtml.cs (2)
18private readonly UserManager<ApplicationUser> _userManager; 23UserManager<ApplicationUser> userManager,
Startup.cs (1)
13public Task<bool> IsConfirmedAsync(UserManager<ApplicationUser> manager, ApplicationUser user)
IdentitySample.Mvc (4)
Controllers\AccountController.cs (2)
18private readonly UserManager<ApplicationUser> _userManager; 25UserManager<ApplicationUser> userManager,
Controllers\ManageController.cs (2)
16private readonly UserManager<ApplicationUser> _userManager; 23UserManager<ApplicationUser> userManager,
Microsoft.AspNetCore.Identity (29)
AspNetUserManager.cs (1)
39ILogger<UserManager<TUser>> logger)
DataProtectorTokenProvider.cs (6)
73/// <param name="manager">The <see cref="UserManager{TUser}"/> to retrieve user properties from.</param> 76public virtual async Task<string> GenerateAsync(string purpose, UserManager<TUser> manager, TUser user) 102/// <param name="manager">The <see cref="UserManager{TUser}"/> to retrieve user properties from.</param> 108public virtual async Task<bool> ValidateAsync(string purpose, string token, UserManager<TUser> manager, TUser user) 180/// <param name="manager">The <see cref="UserManager{TUser}"/> to retrieve user properties from.</param> 187public virtual Task<bool> CanGenerateTwoFactorTokenAsync(UserManager<TUser> manager, TUser user)
IdentityApiEndpointRouteBuilderExtensions.cs (18)
34/// <typeparam name="TUser">The type describing the user. This should match the generic parameter in <see cref="UserManager{TUser}"/>.</typeparam> 60var userManager = sp.GetRequiredService<UserManager<TUser>>(); 145var userManager = sp.GetRequiredService<UserManager<TUser>>(); 196var userManager = sp.GetRequiredService<UserManager<TUser>>(); 209var userManager = sp.GetRequiredService<UserManager<TUser>>(); 228var userManager = sp.GetRequiredService<UserManager<TUser>>(); 264var userManager = signInManager.UserManager; 337var userManager = sp.GetRequiredService<UserManager<TUser>>(); 349var userManager = sp.GetRequiredService<UserManager<TUser>>(); 388async Task SendConfirmationEmailAsync(TUser user, UserManager<TUser> userManager, HttpContext context, string email, bool isChange = false) 455private static async Task<InfoResponse> CreateInfoResponseAsync<TUser>(TUser user, UserManager<TUser> userManager)
IdentityServiceCollectionExtensions.cs (1)
105services.TryAddScoped<UserManager<TUser>>();
SignInManager.cs (3)
40public SignInManager(UserManager<TUser> userManager, 70/// The <see cref="UserManager{TUser}"/> used. 72public UserManager<TUser> UserManager { get; set; }
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (57)
DefaultPocoTest.cs (2)
45var userManager = _builder.ApplicationServices.GetRequiredService<UserManager<IdentityUser>>();
SqlStoreOnlyUsersTestBase.cs (7)
107var userMgr = CreateManager(); 135var manager = CreateManager(); 144var manager = CreateManager(context); 166var manager = CreateManager(db); 182var manager = CreateManager(db); 197var manager = CreateManager(db); 213var manager = CreateManager(db);
SqlStoreTestBase.cs (12)
53services.AddSingleton<ILogger<UserManager<TUser>>>(new TestLogger<UserManager<TUser>>()); 159var userMgr = CreateManager(context); 183var userMgr = CreateManager(); 206var userMgr = CreateManager(); 234var manager = CreateManager(); 243var manager = CreateManager(context); 272var manager = CreateManager(db); 288var manager = CreateManager(db); 303var manager = CreateManager(db); 313var manager = CreateManager(); 330var manager = CreateManager(db);
src\Identity\test\Shared\MockHelpers.cs (5)
15public static Mock<UserManager<TUser>> MockUserManager<TUser>() where TUser : class 18var mgr = new Mock<UserManager<TUser>>(store.Object, null, null, null, null, null, null, null, null); 33public static UserManager<TUser> TestUserManager<TUser>(IUserStore<TUser> store = null) where TUser : class 45var userManager = new UserManager<TUser>(store, options.Object, new PasswordHasher<TUser>(), 48new Mock<ILogger<UserManager<TUser>>>().Object);
UserOnlyCustomContextTest.cs (2)
90var userManager = _builder.ApplicationServices.GetRequiredService<UserManager<IdentityUser>>();
UserOnlyTest.cs (4)
51var userManager = _builder.ApplicationServices.GetRequiredService<UserManager<IdentityUser>>(); 67var manager = _builder.ApplicationServices.GetRequiredService<UserManager<IdentityUser>>();
UserStoreEncryptPersonalDataTest.cs (3)
73var manager = CreateManager(); 199var manager = scope.ServiceProvider.GetService<UserManager<CustomUser>>();
UserStoreGuidKeyTest.cs (2)
66Assert.NotNull(sp.GetRequiredService<UserManager<GuidUser>>()); 83Assert.NotNull(sp.GetRequiredService<UserManager<IdentityUser<Guid>>>());
UserStoreIntKeyTest.cs (2)
44Assert.NotNull(sp.GetRequiredService<UserManager<IntUser>>()); 61Assert.NotNull(sp.GetRequiredService<UserManager<IdentityUser<int>>>());
UserStoreStringKeyTest.cs (2)
45Assert.NotNull(sp.GetRequiredService<UserManager<StringUser>>()); 62Assert.NotNull(sp.GetRequiredService<UserManager<IdentityUser<string>>>());
UserStoreTest.cs (13)
165var manager = CreateManager(); 175var manager = CreateManager(); 187var manager = CreateManager(); 201var manager = CreateManager(); 217var manager = CreateManager(db); 223var manager1 = CreateManager(db); 224var manager2 = CreateManager(db2); 248var manager = CreateManager(db); 254var manager1 = CreateManager(db); 255var manager2 = CreateManager(db2); 277var manager = CreateManager(db); 283var manager1 = CreateManager(db); 284var manager2 = CreateManager(db2);
UserStoreWithGenericsTest.cs (3)
99var manager = CreateManager(); 127var manager = CreateManager(); 156var manager = CreateManager();
Microsoft.AspNetCore.Identity.FunctionalTests (7)
MapIdentityApiTests.cs (7)
386var userManager = app.Services.GetRequiredService<UserManager<ApplicationUser>>(); 405var userManager = app.Services.GetRequiredService<UserManager<ApplicationUser>>(); 1489public async Task<string> GenerateAsync(string purpose, UserManager<TUser> manager, TUser user) 1494public async Task<bool> ValidateAsync(string purpose, string token, UserManager<TUser> manager, TUser user) 1499public Task<bool> CanGenerateTwoFactorTokenAsync(UserManager<TUser> manager, TUser user)
Microsoft.AspNetCore.Identity.InMemory.Test (11)
ControllerTest.cs (4)
48var userManager = app.ApplicationServices.GetRequiredService<UserManager<PocoUser>>(); 98var userManager = app.ApplicationServices.GetRequiredService<UserManager<PocoUser>>();
FunctionalTest.cs (2)
302var userManager = context.RequestServices.GetRequiredService<UserManager<PocoUser>>();
src\Identity\test\Shared\MockHelpers.cs (5)
15public static Mock<UserManager<TUser>> MockUserManager<TUser>() where TUser : class 18var mgr = new Mock<UserManager<TUser>>(store.Object, null, null, null, null, null, null, null, null); 33public static UserManager<TUser> TestUserManager<TUser>(IUserStore<TUser> store = null) where TUser : class 45var userManager = new UserManager<TUser>(store, options.Object, new PasswordHasher<TUser>(), 48new Mock<ILogger<UserManager<TUser>>>().Object);
Microsoft.AspNetCore.Identity.Specification.Tests (111)
IdentitySpecificationTestBase.cs (12)
55services.AddSingleton<ILogger<UserManager<TUser>>>(new TestLogger<UserManager<TUser>>()); 143public Task<IdentityResult> ValidateAsync(UserManager<TUser> manager, TUser user, string password) 153public Task<IdentityResult> ValidateAsync(UserManager<TUser> manager, TUser user) 363var manager = CreateManager(context); 388var userManager = CreateManager(context); 426var userManager = CreateManager(context); 449var userManager = CreateManager(context); 479var userMgr = CreateManager(context); 499var userMgr = CreateManager(context); 520var userMgr = CreateManager(context); 568var manager = CreateManager(context);
UserManagerSpecificationTests.cs (99)
67services.AddSingleton<ILogger<UserManager<TUser>>>(new TestLogger<UserManager<TUser>>()); 78protected virtual UserManager<TUser> CreateManager(object context = null, IServiceCollection services = null, Action<IServiceCollection> configureServices = null) 90return services.BuildServiceProvider().GetService<UserManager<TUser>>(); 145public Task<IdentityResult> ValidateAsync(UserManager<TUser> manager, TUser user, string password) 150public Task<IdentityResult> ValidateAsync(UserManager<TUser> manager, TUser user) 159public Task<IdentityResult> ValidateAsync(UserManager<TUser> manager, TUser user, string password) 164public Task<IdentityResult> ValidateAsync(UserManager<TUser> manager, TUser user) 177var manager = CreateManager(); 192var manager = CreateManager(); 205var manager = CreateManager(); 220var manager = CreateManager(); 239var manager = CreateManager(); 267var manager = CreateManager(); 285var manager = CreateManager(); 301var manager = CreateManager(); 323var manager = CreateManager(); 343var manager = CreateManager(); 356var manager = CreateManager(); 371var manager = CreateManager(); 387var manager = CreateManager(); 407var manager = CreateManager(); 422var manager = CreateManager(); 435var manager = CreateManager(); 452var manager = CreateManager(); 470var manager = CreateManager(); 485var manager = CreateManager(); 499var manager = CreateManager(); 523var manager = CreateManager(); 540var manager = CreateManager(); 555var manager = CreateManager(); 574var manager = CreateManager(); 596var manager = CreateManager(); 619var manager = CreateManager(); 635var manager = CreateManager(); 666var manager = CreateManager(); 686var manager = CreateManager(); 706var manager = CreateManager(); 735var manager = CreateManager(); 768var manager = CreateManager(); 791var manager = CreateManager(); 824var manager = CreateManager(); 839var manager = CreateManager(); 854var manager = CreateManager(); 869var manager = CreateManager(); 884var manager = CreateManager(); 899var manager = CreateManager(); 919var manager = CreateManager(); 933var mgr = CreateManager(); 953var manager = CreateManager(); 961public async Task<string> GenerateAsync(string purpose, UserManager<TUser> manager, TUser user) 966public async Task<bool> ValidateAsync(string purpose, string token, UserManager<TUser> manager, TUser user) 971public Task<bool> CanGenerateTwoFactorTokenAsync(UserManager<TUser> manager, TUser user) 989var manager = CreateManager(); 1014var manager = CreateManager(); 1040var manager = CreateManager(); 1062var manager = CreateManager(); 1090var manager = CreateManager(); 1112var manager = CreateManager(); 1130var manager = CreateManager(); 1151var mgr = CreateManager(); 1173var mgr = CreateManager(); 1198var mgr = CreateManager(); 1226var mgr = CreateManager(); 1254var mgr = CreateManager(); 1270var mgr = CreateManager(); 1288var mgr = CreateManager(); 1302var mgr = CreateManager(); 1317var mgr = CreateManager(); 1332var mgr = CreateManager(); 1350var manager = CreateManager(); 1367var manager = CreateManager(); 1386var manager = CreateManager(); 1400var manager = CreateManager(); 1415public Task<bool> CanGenerateTwoFactorTokenAsync(UserManager<TUser> manager, TUser user) 1418public Task<string> GenerateAsync(string purpose, UserManager<TUser> manager, TUser user) 1421public Task<bool> ValidateAsync(string purpose, string token, UserManager<TUser> manager, TUser user) 1432var manager = CreateManager(); 1452var manager = CreateManager(); 1472var manager = CreateManager(); 1497var manager = CreateManager(); 1519var manager = CreateManager(); 1543var manager = CreateManager(context: null, services: null, 1568var manager = CreateManager(); 1591var manager = CreateManager(); 1614var manager = CreateManager(); 1638var manager = CreateManager(); 1668var manager = CreateManager(); 1685var manager = CreateManager(); 1710var manager = CreateManager(); 1725var manager = CreateManager(); 1749var manager = CreateManager(); 1777var manager = CreateManager(); 1805var manager = CreateManager(); 1845var manager = CreateManager(); 1865var manager = CreateManager(); 1881var manager = CreateManager(); 1895var userMgr = CreateManager(); 1918var manager = CreateManager();
Microsoft.AspNetCore.Identity.Test (101)
IdentityBuilderTest.cs (7)
142var myUserManager = services.BuildServiceProvider().GetRequiredService(typeof(UserManager<PocoUser>)) as MyUserManager; 196Assert.IsType<UserManager<PocoUser>>(provider.GetRequiredService<UserManager<PocoUser>>()); 373public Task<IdentityResult> ValidateAsync(UserManager<PocoUser> manager, PocoUser user) 378public Task<IdentityResult> ValidateAsync(UserManager<PocoUser> manager, PocoUser user, string password) 396public MySignInManager(UserManager<PocoUser> manager, IHttpContextAccessor context, IUserClaimsPrincipalFactory<PocoUser> claimsFactory) : base(manager, context, claimsFactory, null, null, null, null) { } 406public MyClaimsPrincipalFactory(UserManager<PocoUser> userManager, RoleManager<PocoRole> roleManager, IOptions<IdentityOptions> optionsAccessor) : base(userManager, roleManager, optionsAccessor)
PasswordValidatorTest.cs (7)
38var manager = MockHelpers.TestUserManager<PocoUser>(); 52var manager = MockHelpers.TestUserManager<PocoUser>(); 66var manager = MockHelpers.TestUserManager<PocoUser>(); 83var manager = MockHelpers.TestUserManager<PocoUser>(); 99var manager = MockHelpers.TestUserManager<PocoUser>(); 120var manager = MockHelpers.TestUserManager<PocoUser>(); 145var manager = MockHelpers.TestUserManager<PocoUser>();
SignInManagerTest.cs (9)
22var userManager = MockHelpers.MockUserManager<PocoUser>().Object; 90private static Mock<UserManager<PocoUser>> SetupUserManager(PocoUser user) 100private static SignInManager<PocoUser> SetupSignInManager(UserManager<PocoUser> manager, HttpContext context, ILogger logger = null, IdentityOptions identityOptions = null, IAuthenticationSchemeProvider schemeProvider = null) 344public override Task<bool> ValidateAsync(string purpose, string token, UserManager<PocoUser> manager, PocoUser user) 816var manager = MockHelpers.TestUserManager<PocoUser>(); 1279private static SignInManager<PocoUser> SetupSignInManagerType(UserManager<PocoUser> manager, HttpContext context, string typeName) 1300UserManager<TUser> userManager, 1312UserManager<TUser> userManager, 1329UserManager<TUser> userManager,
src\Identity\test\Shared\MockHelpers.cs (5)
15public static Mock<UserManager<TUser>> MockUserManager<TUser>() where TUser : class 18var mgr = new Mock<UserManager<TUser>>(store.Object, null, null, null, null, null, null, null, null); 33public static UserManager<TUser> TestUserManager<TUser>(IUserStore<TUser> store = null) where TUser : class 45var userManager = new UserManager<TUser>(store, options.Object, new PasswordHasher<TUser>(), 48new Mock<ILogger<UserManager<TUser>>>().Object);
UserClaimsPrincipalFactoryTest.cs (2)
15var userManager = MockHelpers.MockUserManager<PocoUser>().Object; 90var manager = userManager.Object;
UserManagerTest.cs (67)
24var manager = services.BuildServiceProvider().GetRequiredService<UserManager<PocoUser>>(); 44Assert.Same(provider.GetRequiredService<UserManager<PocoUser>>(), 72var userManager = MockHelpers.TestUserManager<PocoUser>(store.Object); 91var userManager = MockHelpers.TestUserManager<PocoUser>(store.Object); 113var userManager = MockHelpers.TestUserManager<PocoUser>(store.Object); 130var userManager = MockHelpers.TestUserManager(store.Object); 150var userManager = MockHelpers.TestUserManager(store.Object); 172var userManager = MockHelpers.TestUserManager(store.Object); 193var userManager = MockHelpers.TestUserManager(store.Object); 210var userManager = MockHelpers.TestUserManager<PocoUser>(store.Object); 228var userManager = MockHelpers.TestUserManager<PocoUser>(store.Object); 245var userManager = MockHelpers.TestUserManager(store.Object); 264var userManager = MockHelpers.TestUserManager(store.Object); 281var userManager = MockHelpers.TestUserManager(store.Object); 305var userManager = MockHelpers.TestUserManager(store.Object); 323var userManager = MockHelpers.TestUserManager(store.Object); 362var userManager = MockHelpers.TestUserManager<PocoUser>(store.Object); 400var userManager = MockHelpers.TestUserManager<PocoUser>(store.Object); 426var userManager = MockHelpers.TestUserManager(store.Object); 463var userManager = MockHelpers.TestUserManager<PocoUser>(store.Object); 490var userManager = MockHelpers.TestUserManager<PocoUser>(store.Object); 511var userManager = MockHelpers.TestUserManager(store.Object); 532var userManager = MockHelpers.TestUserManager(store.Object); 554var userManager = MockHelpers.TestUserManager(store.Object); 583var userManager = MockHelpers.TestUserManager(store.Object); 600var manager = MockHelpers.TestUserManager(store.Object); 617var manager = MockHelpers.TestUserManager(store.Object); 640var userManager = MockHelpers.TestUserManager(store.Object); 661var userManager = MockHelpers.TestUserManager<PocoUser>(store.Object); 674var manager = MockHelpers.TestUserManager(new EmptyStore()); 681var manager = MockHelpers.TestUserManager(new NoopUserStore()); 689var manager = MockHelpers.TestUserManager(new NoopUserStore()); 701var manager = MockHelpers.TestUserManager(new NoopUserStore()); 711var manager = MockHelpers.TestUserManager(new NoopUserStore()); 722var manager = MockHelpers.TestUserManager(new NoopUserStore()); 737var manager = MockHelpers.TestUserManager(store.Object); 750var manager = MockHelpers.TestUserManager(new NoopUserStore()); 761var manager = MockHelpers.TestUserManager(new NoopUserStore()); 771public Task<bool> CanGenerateTwoFactorTokenAsync(UserManager<PocoUser> manager, PocoUser user) 776public Task<string> GenerateAsync(string purpose, UserManager<PocoUser> manager, PocoUser user) 781public Task<bool> ValidateAsync(string purpose, string token, UserManager<PocoUser> manager, PocoUser user) 800var manager = services.BuildServiceProvider().GetService<UserManager<PocoUser>>(); 811var e = Assert.Throws<InvalidOperationException>(() => services.BuildServiceProvider().GetService<UserManager<PocoUser>>()); 822var e = Assert.Throws<InvalidOperationException>(() => services.BuildServiceProvider().GetService<UserManager<PocoUser>>()); 897var manager = services.BuildServiceProvider().GetService<UserManager<PocoUser>>(); 904var manager = MockHelpers.TestUserManager(new NoopUserStore()); 914var manager = MockHelpers.TestUserManager(new NoopUserStore()); 927var manager = MockHelpers.TestUserManager(new NoopUserStore()); 941var manager = MockHelpers.TestUserManager(new NoopUserStore()); 952var manager = MockHelpers.TestUserManager(new NoopUserStore()); 962var manager = MockHelpers.TestUserManager(new NoopUserStore()); 977var manager = MockHelpers.TestUserManager(new NoopUserStore()); 985var manager = MockHelpers.TestUserManager(new EmptyStore()); 995var manager = MockHelpers.TestUserManager(new EmptyStore()); 1010var manager = MockHelpers.TestUserManager(store.Object); 1021var manager = MockHelpers.TestUserManager(new NotImplementedStore()); 1048var manager = MockHelpers.TestUserManager(new EmptyStore()); 1149var manager = MockHelpers.TestUserManager(new NoopUserStore()); 1203public Task<IdentityResult> ValidateAsync(UserManager<TUser> manager, TUser user, string password) 1472public Task<string> GenerateAsync(string purpose, UserManager<PocoUser> manager, PocoUser user) 1477public Task<bool> ValidateAsync(string purpose, string token, UserManager<PocoUser> manager, PocoUser user) 1482public Task<bool> CanGenerateTwoFactorTokenAsync(UserManager<PocoUser> manager, PocoUser user) 1754var manager = services.BuildServiceProvider().GetRequiredService<UserManager<PocoUser>>();
UserValidatorTest.cs (4)
12var manager = MockHelpers.TestUserManager(new NoopUserStore()); 27var manager = MockHelpers.TestUserManager(new NoopUserStore()); 49var manager = MockHelpers.TestUserManager(new NoopUserStore()); 76var manager = MockHelpers.TestUserManager(new NoopUserStore());
Microsoft.AspNetCore.Identity.UI (92)
Areas\Identity\Pages\V4\Account\ConfirmEmail.cshtml.cs (2)
36private readonly UserManager<TUser> _userManager; 38public ConfirmEmailModel(UserManager<TUser> userManager)
Areas\Identity\Pages\V4\Account\ConfirmEmailChange.cshtml.cs (2)
36private readonly UserManager<TUser> _userManager; 39public ConfirmEmailChangeModel(UserManager<TUser> userManager, SignInManager<TUser> signInManager)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (2)
94private readonly UserManager<TUser> _userManager; 102UserManager<TUser> userManager,
Areas\Identity\Pages\V4\Account\ForgotPassword.cshtml.cs (2)
53private readonly UserManager<TUser> _userManager; 56public ForgotPasswordModel(UserManager<TUser> userManager, IEmailSender<TUser> emailSender)
Areas\Identity\Pages\V4\Account\LoginWith2fa.cshtml.cs (2)
80private readonly UserManager<TUser> _userManager; 85UserManager<TUser> userManager,
Areas\Identity\Pages\V4\Account\LoginWithRecoveryCode.cshtml.cs (2)
67private readonly UserManager<TUser> _userManager; 72UserManager<TUser> userManager,
Areas\Identity\Pages\V4\Account\Manage\ChangePassword.cshtml.cs (2)
82private readonly UserManager<TUser> _userManager; 87UserManager<TUser> userManager,
Areas\Identity\Pages\V4\Account\Manage\DeletePersonalData.cshtml.cs (2)
61private readonly UserManager<TUser> _userManager; 66UserManager<TUser> userManager,
Areas\Identity\Pages\V4\Account\Manage\Disable2fa.cshtml.cs (2)
39private readonly UserManager<TUser> _userManager; 43UserManager<TUser> userManager,
Areas\Identity\Pages\V4\Account\Manage\DownloadPersonalData.cshtml.cs (2)
34private readonly UserManager<TUser> _userManager; 38UserManager<TUser> userManager,
Areas\Identity\Pages\V4\Account\Manage\Email.cshtml.cs (2)
83private readonly UserManager<TUser> _userManager; 88UserManager<TUser> userManager,
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (2)
87private readonly UserManager<TUser> _userManager; 94UserManager<TUser> userManager,
Areas\Identity\Pages\V4\Account\Manage\ExternalLogins.cshtml.cs (2)
70private readonly UserManager<TUser> _userManager; 75UserManager<TUser> userManager,
Areas\Identity\Pages\V4\Account\Manage\GenerateRecoveryCodes.cshtml.cs (2)
47private readonly UserManager<TUser> _userManager; 51UserManager<TUser> userManager,
Areas\Identity\Pages\V4\Account\Manage\Index.cshtml.cs (2)
67private readonly UserManager<TUser> _userManager; 71UserManager<TUser> userManager,
Areas\Identity\Pages\V4\Account\Manage\PersonalData.cshtml.cs (2)
26private readonly UserManager<TUser> _userManager; 30UserManager<TUser> userManager,
Areas\Identity\Pages\V4\Account\Manage\ResetAuthenticator.cshtml.cs (2)
39readonly UserManager<TUser> _userManager; 44UserManager<TUser> userManager,
Areas\Identity\Pages\V4\Account\Manage\SetPassword.cshtml.cs (2)
72private readonly UserManager<TUser> _userManager; 76UserManager<TUser> userManager,
Areas\Identity\Pages\V4\Account\Manage\TwoFactorAuthentication.cshtml.cs (2)
64private readonly UserManager<TUser> _userManager; 69UserManager<TUser> userManager, SignInManager<TUser> signInManager, ILogger<TwoFactorAuthenticationModel> logger)
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (2)
96private readonly UserManager<TUser> _userManager; 103UserManager<TUser> userManager,
Areas\Identity\Pages\V4\Account\RegisterConfirmation.cshtml.cs (2)
47private readonly UserManager<TUser> _userManager; 50public RegisterConfirmationModel(UserManager<TUser> userManager, IEmailSender<TUser> sender)
Areas\Identity\Pages\V4\Account\ResendEmailConfirmation.cshtml.cs (2)
59private readonly UserManager<TUser> _userManager; 62public ResendEmailConfirmationModel(UserManager<TUser> userManager, IEmailSender<TUser> emailSender)
Areas\Identity\Pages\V4\Account\ResetPassword.cshtml.cs (2)
83private readonly UserManager<TUser> _userManager; 85public ResetPasswordModel(UserManager<TUser> userManager)
Areas\Identity\Pages\V5\Account\ConfirmEmail.cshtml.cs (2)
36private readonly UserManager<TUser> _userManager; 38public ConfirmEmailModel(UserManager<TUser> userManager)
Areas\Identity\Pages\V5\Account\ConfirmEmailChange.cshtml.cs (2)
36private readonly UserManager<TUser> _userManager; 39public ConfirmEmailChangeModel(UserManager<TUser> userManager, SignInManager<TUser> signInManager)
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (2)
94private readonly UserManager<TUser> _userManager; 102UserManager<TUser> userManager,
Areas\Identity\Pages\V5\Account\ForgotPassword.cshtml.cs (2)
53private readonly UserManager<TUser> _userManager; 56public ForgotPasswordModel(UserManager<TUser> userManager, IEmailSender<TUser> emailSender)
Areas\Identity\Pages\V5\Account\LoginWith2fa.cshtml.cs (2)
80private readonly UserManager<TUser> _userManager; 85UserManager<TUser> userManager,
Areas\Identity\Pages\V5\Account\LoginWithRecoveryCode.cshtml.cs (2)
67private readonly UserManager<TUser> _userManager; 72UserManager<TUser> userManager,
Areas\Identity\Pages\V5\Account\Manage\ChangePassword.cshtml.cs (2)
82private readonly UserManager<TUser> _userManager; 87UserManager<TUser> userManager,
Areas\Identity\Pages\V5\Account\Manage\DeletePersonalData.cshtml.cs (2)
61private readonly UserManager<TUser> _userManager; 66UserManager<TUser> userManager,
Areas\Identity\Pages\V5\Account\Manage\Disable2fa.cshtml.cs (2)
39private readonly UserManager<TUser> _userManager; 43UserManager<TUser> userManager,
Areas\Identity\Pages\V5\Account\Manage\DownloadPersonalData.cshtml.cs (2)
34private readonly UserManager<TUser> _userManager; 38UserManager<TUser> userManager,
Areas\Identity\Pages\V5\Account\Manage\Email.cshtml.cs (2)
83private readonly UserManager<TUser> _userManager; 88UserManager<TUser> userManager,
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (2)
87private readonly UserManager<TUser> _userManager; 94UserManager<TUser> userManager,
Areas\Identity\Pages\V5\Account\Manage\ExternalLogins.cshtml.cs (2)
70private readonly UserManager<TUser> _userManager; 75UserManager<TUser> userManager,
Areas\Identity\Pages\V5\Account\Manage\GenerateRecoveryCodes.cshtml.cs (2)
47private readonly UserManager<TUser> _userManager; 51UserManager<TUser> userManager,
Areas\Identity\Pages\V5\Account\Manage\Index.cshtml.cs (2)
67private readonly UserManager<TUser> _userManager; 71UserManager<TUser> userManager,
Areas\Identity\Pages\V5\Account\Manage\PersonalData.cshtml.cs (2)
26private readonly UserManager<TUser> _userManager; 30UserManager<TUser> userManager,
Areas\Identity\Pages\V5\Account\Manage\ResetAuthenticator.cshtml.cs (2)
39private readonly UserManager<TUser> _userManager; 44UserManager<TUser> userManager,
Areas\Identity\Pages\V5\Account\Manage\SetPassword.cshtml.cs (2)
72private readonly UserManager<TUser> _userManager; 76UserManager<TUser> userManager,
Areas\Identity\Pages\V5\Account\Manage\TwoFactorAuthentication.cshtml.cs (2)
64private readonly UserManager<TUser> _userManager; 69UserManager<TUser> userManager, SignInManager<TUser> signInManager, ILogger<TwoFactorAuthenticationModel> logger)
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (2)
96private readonly UserManager<TUser> _userManager; 103UserManager<TUser> userManager,
Areas\Identity\Pages\V5\Account\RegisterConfirmation.cshtml.cs (2)
47private readonly UserManager<TUser> _userManager; 50public RegisterConfirmationModel(UserManager<TUser> userManager, IEmailSender<TUser> sender)
Areas\Identity\Pages\V5\Account\ResendEmailConfirmation.cshtml.cs (2)
59private readonly UserManager<TUser> _userManager; 62public ResendEmailConfirmationModel(UserManager<TUser> userManager, IEmailSender<TUser> emailSender)
Areas\Identity\Pages\V5\Account\ResetPassword.cshtml.cs (2)
83private readonly UserManager<TUser> _userManager; 85public ResetPasswordModel(UserManager<TUser> userManager)
Microsoft.Extensions.Identity.Core (53)
AuthenticatorTokenProvider.cs (5)
18/// <param name="manager">The <see cref="UserManager{TUser}"/> to retrieve the <paramref name="user"/> from.</param> 21public virtual async Task<bool> CanGenerateTwoFactorTokenAsync(UserManager<TUser> manager, TUser user) 32/// <param name="manager">The <see cref="UserManager{TUser}"/> to retrieve the <paramref name="user"/> from.</param> 35public virtual Task<string> GenerateAsync(string purpose, UserManager<TUser> manager, TUser user) 48public virtual async Task<bool> ValidateAsync(string purpose, string token, UserManager<TUser> manager, TUser user)
DefaultUserConfirmation.cs (2)
17/// <param name="manager">The <see cref="UserManager{TUser}"/> that can be used to retrieve user properties.</param> 20public virtual async Task<bool> IsConfirmedAsync(UserManager<TUser> manager, TUser user)
EmailTokenProvider.cs (4)
18/// <param name="manager">The <see cref="UserManager{TUser}"/> to retrieve the <paramref name="user"/> from.</param> 21public override async Task<bool> CanGenerateTwoFactorTokenAsync(UserManager<TUser> manager, TUser user) 32/// <param name="manager">The <see cref="UserManager{TUser}"/> to retrieve the <paramref name="user"/> from.</param> 35public override async Task<string> GetUserModifierAsync(string purpose, UserManager<TUser> manager,
IdentityBuilder.cs (2)
169/// Adds a <see cref="UserManager{TUser}"/> for the <see cref="UserType"/>. 176var userManagerType = typeof(UserManager<>).MakeGenericType(UserType);
IdentityServiceCollectionExtensions.cs (1)
48services.TryAddScoped<UserManager<TUser>>();
IPasswordValidator.cs (2)
17/// <param name="manager">The <see cref="UserManager{TUser}"/> to retrieve the <paramref name="user"/> properties from.</param> 21Task<IdentityResult> ValidateAsync(UserManager<TUser> manager, TUser user, string? password);
IUserConfirmation.cs (2)
17/// <param name="manager">The <see cref="UserManager{TUser}"/> that can be used to retrieve user properties.</param> 20Task<bool> IsConfirmedAsync(UserManager<TUser> manager, TUser user);
IUserTwoFactorTokenProvider.cs (6)
18/// <param name="manager">The <see cref="UserManager{TUser}"/> that can be used to retrieve user properties.</param> 33Task<string> GenerateAsync(string purpose, UserManager<TUser> manager, TUser user); 41/// <param name="manager">The <see cref="UserManager{TUser}"/> that can be used to retrieve user properties.</param> 48Task<bool> ValidateAsync(string purpose, string token, UserManager<TUser> manager, TUser user); 54/// <param name="manager">The <see cref="UserManager{TUser}"/> that can be used to retrieve user properties.</param> 61Task<bool> CanGenerateTwoFactorTokenAsync(UserManager<TUser> manager, TUser user);
IUserValidator.cs (2)
17/// <param name="manager">The <see cref="UserManager{TUser}"/> that can be used to retrieve user properties.</param> 20Task<IdentityResult> ValidateAsync(UserManager<TUser> manager, TUser user);
PasswordValidator.cs (2)
36/// <param name="manager">The <see cref="UserManager{TUser}"/> to retrieve the <paramref name="user"/> properties from.</param> 40public virtual Task<IdentityResult> ValidateAsync(UserManager<TUser> manager, TUser user, string? password)
PhoneNumberTokenProvider.cs (4)
22/// <param name="manager">The <see cref="UserManager{TUser}"/> that can be used to retrieve user properties.</param> 30public override async Task<bool> CanGenerateTwoFactorTokenAsync(UserManager<TUser> manager, TUser user) 43/// <param name="manager">The <see cref="UserManager{TUser}"/> that can be used to retrieve user properties.</param> 49public override async Task<string> GetUserModifierAsync(string purpose, UserManager<TUser> manager, TUser user)
TotpSecurityStampBasedTokenProvider.cs (8)
22/// <param name="manager">The <see cref="UserManager{TUser}"/> that can be used to retrieve user properties.</param> 37public virtual async Task<string> GenerateAsync(string purpose, UserManager<TUser> manager, TUser user) 52/// <param name="manager">The <see cref="UserManager{TUser}"/> that can be used to retrieve user properties.</param> 59public virtual async Task<bool> ValidateAsync(string purpose, string token, UserManager<TUser> manager, TUser user) 77/// <param name="manager">The <see cref="UserManager{TUser}"/> that can be used to retrieve user properties.</param> 83public virtual async Task<string> GetUserModifierAsync(string purpose, UserManager<TUser> manager, TUser user) 95/// <param name="manager">The <see cref="UserManager{TUser}"/> that can be used to retrieve user properties.</param> 102public abstract Task<bool> CanGenerateTwoFactorTokenAsync(UserManager<TUser> manager, TUser user);
UserClaimsPrincipalFactory.cs (7)
22/// <param name="userManager">The <see cref="UserManager{TUser}"/> to retrieve user information from.</param> 25UserManager<TUser> userManager, 39/// Gets the <see cref="UserManager{TUser}"/> for this factory. 42/// The current <see cref="UserManager{TUser}"/> for this factory instance. 44public UserManager<TUser> UserManager { get; private set; } 113/// <param name="userManager">The <see cref="UserManager{TUser}"/> to retrieve user information from.</param> 116public UserClaimsPrincipalFactory(UserManager<TUser> userManager, RoleManager<TRole> roleManager, IOptions<IdentityOptions> options)
UserManager.cs (2)
58/// Constructs a new instance of <see cref="UserManager{TUser}"/>. 77ILogger<UserManager<TUser>> logger)
UserValidator.cs (4)
37/// <param name="manager">The <see cref="UserManager{TUser}"/> that can be used to retrieve user properties.</param> 40public virtual async Task<IdentityResult> ValidateAsync(UserManager<TUser> manager, TUser user) 52private async Task<List<IdentityError>?> ValidateUserName(UserManager<TUser> manager, TUser user) 82private async Task<List<IdentityError>?> ValidateEmail(UserManager<TUser> manager, TUser user, List<IdentityError>? errors)