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