4 types derived from SignInManager
Microsoft.AspNetCore.Identity.Test (4)
IdentityBuilderTest.cs (1)
394
private class MySignInManager :
SignInManager
<PocoUser>
SignInManagerTest.cs (3)
1297
private class NoOverridesSignInManager<TUser> :
SignInManager
<TUser> where TUser : class
1309
private class OverrideAndAwaitBaseResetSignInManager<TUser> :
SignInManager
<TUser> where TUser : class
1326
private class OverrideAndPassThroughUserManagerResetSignInManager<TUser> :
SignInManager
<TUser> where TUser : class
8 instantiations of SignInManager
Microsoft.AspNetCore.Identity.Test (8)
SecurityStampValidatorTest.cs (1)
168
var signInManager = new
SignInManager
<PocoUser>(userManager.Object,
SignInManagerTest.cs (7)
21
Assert.Throws<ArgumentNullException>("userManager", () => new
SignInManager
<PocoUser>(null, null, null, null, null, null, null));
23
Assert.Throws<ArgumentNullException>("contextAccessor", () => new
SignInManager
<PocoUser>(userManager, null, null, null, null, null, null));
27
Assert.Throws<ArgumentNullException>("claimsFactory", () => new
SignInManager
<PocoUser>(userManager, contextAccessor.Object, null, null, null, null, null));
48
var helper = new
SignInManager
<PocoUser>(manager.Object, contextAccessor.Object, claimsFactory, options.Object, logger, new Mock<IAuthenticationSchemeProvider>().Object, new DefaultUserConfirmation<PocoUser>());
78
var helper = new
SignInManager
<PocoUser>(manager.Object, contextAccessor.Object, claimsFactory, options.Object, logger, new Mock<IAuthenticationSchemeProvider>().Object, new DefaultUserConfirmation<PocoUser>());
110
var sm = new
SignInManager
<PocoUser>(manager, contextAccessor.Object, claimsFactory, options.Object, null, schemeProvider, new DefaultUserConfirmation<PocoUser>());
1289
nameof(SignInManager<PocoUser>) => new
SignInManager
<PocoUser>(manager, contextAccessor.Object, claimsFactory, options, NullLogger<SignInManager<PocoUser>>.Instance, Mock.Of<IAuthenticationSchemeProvider>(), new DefaultUserConfirmation<PocoUser>()),
193 references to SignInManager
Identity.ExternalClaims (22)
Controllers\AccountController.cs (2)
18
private readonly
SignInManager
<ApplicationUser> _signInManager;
21
public AccountController(
SignInManager
<ApplicationUser> signInManager, ILogger<AccountController> logger)
Pages\Account\ExternalLogin.cshtml.cs (2)
19
private readonly
SignInManager
<ApplicationUser> _signInManager;
24
SignInManager
<ApplicationUser> signInManager,
Pages\Account\Login.cshtml.cs (2)
20
private readonly
SignInManager
<ApplicationUser> _signInManager;
23
public LoginModel(
SignInManager
<ApplicationUser> signInManager, ILogger<LoginModel> logger)
Pages\Account\LoginWith2fa.cshtml.cs (2)
19
private readonly
SignInManager
<ApplicationUser> _signInManager;
22
public LoginWith2faModel(
SignInManager
<ApplicationUser> signInManager, ILogger<LoginWith2faModel> logger)
Pages\Account\LoginWithRecoveryCode.cshtml.cs (2)
19
private readonly
SignInManager
<ApplicationUser> _signInManager;
22
public LoginWithRecoveryCodeModel(
SignInManager
<ApplicationUser> signInManager, ILogger<LoginWithRecoveryCodeModel> logger)
Pages\Account\Manage\ChangePassword.cshtml.cs (2)
20
private readonly
SignInManager
<ApplicationUser> _signInManager;
25
SignInManager
<ApplicationUser> signInManager,
Pages\Account\Manage\ExternalLogins.cshtml.cs (2)
19
private readonly
SignInManager
<ApplicationUser> _signInManager;
23
SignInManager
<ApplicationUser> signInManager)
Pages\Account\Manage\Index.cshtml.cs (2)
21
private readonly
SignInManager
<ApplicationUser> _signInManager;
26
SignInManager
<ApplicationUser> signInManager,
Pages\Account\Manage\SetPassword.cshtml.cs (2)
19
private readonly
SignInManager
<ApplicationUser> _signInManager;
23
SignInManager
<ApplicationUser> signInManager)
Pages\Account\Manage\TwoFactorAuthentication.cshtml.cs (2)
19
private readonly
SignInManager
<ApplicationUser> _signInManager;
24
SignInManager
<ApplicationUser> signInManager,
Pages\Account\Register.cshtml.cs (2)
20
private readonly
SignInManager
<ApplicationUser> _signInManager;
27
SignInManager
<ApplicationUser> signInManager,
IdentitySample.DefaultUI (4)
Areas\Identity\Pages\Account\Manage\Index.cshtml.cs (2)
15
private readonly
SignInManager
<ApplicationUser> _signInManager;
19
SignInManager
<ApplicationUser> signInManager)
Areas\Identity\Pages\Account\Register.cshtml.cs (2)
17
private readonly
SignInManager
<ApplicationUser> _signInManager;
24
SignInManager
<ApplicationUser> signInManager,
IdentitySample.Mvc (4)
Controllers\AccountController.cs (2)
19
private readonly
SignInManager
<ApplicationUser> _signInManager;
26
SignInManager
<ApplicationUser> signInManager,
Controllers\ManageController.cs (2)
17
private readonly
SignInManager
<ApplicationUser> _signInManager;
24
SignInManager
<ApplicationUser> signInManager,
Microsoft.AspNetCore.Identity (23)
IdentityApiEndpointRouteBuilderExtensions.cs (6)
93
var
signInManager = sp.GetRequiredService<
SignInManager
<TUser>>();
125
var
signInManager = sp.GetRequiredService<
SignInManager
<TUser>>();
263
var
signInManager = sp.GetRequiredService<
SignInManager
<TUser>>();
IdentityBuilderExtensions.cs (4)
50
/// Adds a <see cref="
SignInManager
{TUser}"/> for the <see cref="IdentityBuilder.UserType"/>.
58
var managerType = typeof(
SignInManager
<>).MakeGenericType(builder.UserType);
64
/// Adds a <see cref="
SignInManager
{TUser}"/> for the <see cref="IdentityBuilder.UserType"/>.
73
var managerType = typeof(
SignInManager
<>).MakeGenericType(builder.UserType);
IdentityServiceCollectionExtensions.cs (1)
106
services.TryAddScoped<
SignInManager
<TUser>>();
SecurityStampValidator.cs (5)
23
/// <param name="signInManager">The <see cref="
SignInManager
{TUser}"/>.</param>
27
public SecurityStampValidator(IOptions<SecurityStampValidatorOptions> options,
SignInManager
<TUser> signInManager, ISystemClock clock, ILoggerFactory logger)
42
/// <param name="signInManager">The <see cref="
SignInManager
{TUser}"/>.</param>
44
public SecurityStampValidator(IOptions<SecurityStampValidatorOptions> options,
SignInManager
<TUser> signInManager, ILoggerFactory logger)
60
public
SignInManager
<TUser> SignInManager { get; }
SignInManager.cs (3)
31
/// Creates a new instance of <see cref="
SignInManager
{TUser}"/>.
44
ILogger<
SignInManager
<TUser>> logger,
952
if (GetType() == typeof(
SignInManager
<TUser>))
TwoFactorSecurityStampValidator.cs (4)
22
/// <param name="signInManager">The <see cref="
SignInManager
{TUser}"/>.</param>
26
public TwoFactorSecurityStampValidator(IOptions<SecurityStampValidatorOptions> options,
SignInManager
<TUser> signInManager, ISystemClock clock, ILoggerFactory logger) : base(options, signInManager, clock, logger)
33
/// <param name="signInManager">The <see cref="
SignInManager
{TUser}"/>.</param>
35
public TwoFactorSecurityStampValidator(IOptions<SecurityStampValidatorOptions> options,
SignInManager
<TUser> signInManager, ILoggerFactory logger) : base(options, signInManager, logger)
Microsoft.AspNetCore.Identity.InMemory.Test (6)
ControllerTest.cs (4)
49
var
signInManager = app.ApplicationServices.GetRequiredService<
SignInManager
<PocoUser>>();
99
var
signInManager = app.ApplicationServices.GetRequiredService<
SignInManager
<PocoUser>>();
FunctionalTest.cs (2)
304
var
signInManager = context.RequestServices.GetRequiredService<
SignInManager
<PocoUser>>();
Microsoft.AspNetCore.Identity.Test (72)
IdentityBuilderTest.cs (3)
171
var myUserManager = services.BuildServiceProvider().GetRequiredService(typeof(
SignInManager
<PocoUser>)) as MySignInManager;
212
Assert.IsType<MySignInManager>(provider.GetRequiredService<
SignInManager
<PocoUser>>());
232
Assert.IsType<MySignInManager>(provider.GetRequiredService<
SignInManager
<PocoUser>>());
SecurityStampValidatorTest.cs (6)
105
var signInManager = new Mock<
SignInManager
<PocoUser>>(userManager.Object,
168
var
signInManager = new SignInManager<PocoUser>(userManager.Object,
209
var signInManager = new Mock<
SignInManager
<PocoUser>>(userManager.Object,
248
var signInManager = new Mock<
SignInManager
<PocoUser>>(userManager.Object,
285
var signInManager = new Mock<
SignInManager
<PocoUser>>(userManager.Object,
333
var signInManager = new Mock<
SignInManager
<PocoUser>>(userManager.Object,
SignInManagerTest.cs (63)
47
var logger = new TestLogger<
SignInManager
<PocoUser>>();
48
var
helper = new SignInManager<PocoUser>(manager.Object, contextAccessor.Object, claimsFactory, options.Object, logger, new Mock<IAuthenticationSchemeProvider>().Object, new DefaultUserConfirmation<PocoUser>());
77
var logger = new TestLogger<
SignInManager
<PocoUser>>();
78
var
helper = new SignInManager<PocoUser>(manager.Object, contextAccessor.Object, claimsFactory, options.Object, logger, new Mock<IAuthenticationSchemeProvider>().Object, new DefaultUserConfirmation<PocoUser>());
100
private static
SignInManager
<PocoUser> SetupSignInManager(UserManager<PocoUser> manager, HttpContext context, ILogger logger = null, IdentityOptions identityOptions = null, IAuthenticationSchemeProvider schemeProvider = null)
110
var
sm = new SignInManager<PocoUser>(manager, contextAccessor.Object, claimsFactory, options.Object, null, schemeProvider, new DefaultUserConfirmation<PocoUser>());
111
sm.Logger = logger ?? NullLogger<
SignInManager
<PocoUser>>.Instance;
129
var
helper = SetupSignInManager(manager.Object, context);
153
var
helper = SetupSignInManager(manager.Object, context);
178
var
helper = SetupSignInManager(manager.Object, context);
226
var
helper = SetupSignInManager(manager.Object, context);
248
var
helper = SetupSignInManager(manager.Object, context);
281
var
helper = SetupSignInManager(manager.Object, context);
319
var
helper = SetupSignInManager(manager.Object, context);
367
var
helper = SetupSignInManager(manager.Object, context);
368
var twoFactorInfo = new
SignInManager
<PocoUser>.TwoFactorAuthenticationInfo { User = user };
373
var id =
SignInManager
<PocoUser>.StoreTwoFactorInfo(user.Id, null);
409
var
helper = SetupSignInManager(manager.Object, context);
410
var twoFactorInfo = new
SignInManager
<PocoUser>.TwoFactorAuthenticationInfo { User = user };
415
var id =
SignInManager
<PocoUser>.StoreTwoFactorInfo(user.Id, null);
448
var
helper = SetupSignInManager(manager.Object, context);
449
var twoFactorInfo = new
SignInManager
<PocoUser>.TwoFactorAuthenticationInfo { User = user };
454
var id =
SignInManager
<PocoUser>.StoreTwoFactorInfo(user.Id, null);
496
var
helper = SetupSignInManager(manager.Object, context);
527
var
helper = SetupSignInManager(manager.Object, context);
528
var twoFactorInfo = new
SignInManager
<PocoUser>.TwoFactorAuthenticationInfo { User = user };
530
var id =
SignInManager
<PocoUser>.StoreTwoFactorInfo(user.Id, externalLogin ? loginProvider : null);
578
var
helper = SetupSignInManager(manager.Object, context);
619
var signInManager = new Mock<
SignInManager
<PocoUser>>(manager.Object,
670
var
helper = SetupSignInManager(manager.Object, context);
671
var twoFactorInfo = new
SignInManager
<PocoUser>.TwoFactorAuthenticationInfo { User = user };
673
var id =
SignInManager
<PocoUser>.StoreTwoFactorInfo(user.Id, externalLogin ? loginProvider : null);
732
var
helper = SetupSignInManager(manager.Object, context);
733
var id =
SignInManager
<PocoUser>.StoreTwoFactorInfo(user.Id, loginProvider: null);
755
var
helper = SetupSignInManager(manager.Object, context);
794
var
helper = SetupSignInManager(manager.Object, context);
822
var
helper = SetupSignInManager(manager, context, null, manager.Options);
841
var logger = new TestLogger<
SignInManager
<PocoUser>>();
842
var
helper = SetupSignInManager(manager.Object, context.Object, logger);
863
var
helper = SetupSignInManager(manager.Object, context.Object);
890
var
helper = SetupSignInManager(manager.Object, context.Object);
917
var
helper = SetupSignInManager(manager.Object, context.Object);
950
var logger = new TestLogger<
SignInManager
<PocoUser>>();
951
var
helper = SetupSignInManager(manager.Object, context, logger, identityOptions);
1005
var logger = new TestLogger<
SignInManager
<PocoUser>>();
1006
var
helper = SetupSignInManager(manager.Object, context, logger, identityOptions);
1051
var
signInManager = SetupSignInManager(userManager.Object, context, schemeProvider: schemeProvider.Object);
1082
var
signInManager = SetupSignInManager(userManager.Object, context, schemeProvider: schemeProvider.Object);
1114
var
signInManager = SetupSignInManager(userManager.Object, context, schemeProvider: schemeProvider.Object);
1128
new[] { nameof(
SignInManager
<PocoUser>) },
1147
var
helper = SetupSignInManagerType(manager.Object, context, signInManagerTypeName);
1172
var
helper = SetupSignInManagerType(manager.Object, context, signInManagerTypeName);
1199
var
helper = SetupSignInManager(manager.Object, context);
1200
var id =
SignInManager
<PocoUser>.StoreTwoFactorInfo(user.Id, null);
1236
var
helper = SetupSignInManager(manager.Object, context);
1265
var
helper = SetupSignInManager(manager.Object, context);
1266
var id =
SignInManager
<PocoUser>.StoreTwoFactorInfo(user.Id, null);
1279
private static
SignInManager
<PocoUser> SetupSignInManagerType(UserManager<PocoUser> manager, HttpContext context, string typeName)
1289
nameof(
SignInManager
<PocoUser>) => new SignInManager<PocoUser>(manager, contextAccessor.Object, claimsFactory, options, NullLogger<
SignInManager
<PocoUser>>.Instance, Mock.Of<IAuthenticationSchemeProvider>(), new DefaultUserConfirmation<PocoUser>()),
1304
: base(userManager, contextAccessor, claimsFactory, optionsAccessor, NullLogger<
SignInManager
<TUser>>.Instance, Mock.Of<IAuthenticationSchemeProvider>(), new DefaultUserConfirmation<TUser>())
1316
: base(userManager, contextAccessor, claimsFactory, optionsAccessor, NullLogger<
SignInManager
<TUser>>.Instance, Mock.Of<IAuthenticationSchemeProvider>(), new DefaultUserConfirmation<TUser>())
1333
: base(userManager, contextAccessor, claimsFactory, optionsAccessor, NullLogger<
SignInManager
<TUser>>.Instance, Mock.Of<IAuthenticationSchemeProvider>(), new DefaultUserConfirmation<TUser>())
Microsoft.AspNetCore.Identity.UI (62)
Areas\Identity\Filters\ExternalLoginsPageFilter.cs (2)
18
var
signInManager = context.HttpContext.RequestServices.GetRequiredService<
SignInManager
<TUser>>();
Areas\Identity\Pages\V4\Account\ConfirmEmailChange.cshtml.cs (2)
37
private readonly
SignInManager
<TUser> _signInManager;
39
public ConfirmEmailChangeModel(UserManager<TUser> userManager,
SignInManager
<TUser> signInManager)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (2)
93
private readonly
SignInManager
<TUser> _signInManager;
101
SignInManager
<TUser> signInManager,
Areas\Identity\Pages\V4\Account\Login.cshtml.cs (2)
94
private readonly
SignInManager
<TUser> _signInManager;
97
public LoginModel(
SignInManager
<TUser> signInManager, ILogger<LoginModel> logger)
Areas\Identity\Pages\V4\Account\LoginWith2fa.cshtml.cs (2)
79
private readonly
SignInManager
<TUser> _signInManager;
84
SignInManager
<TUser> signInManager,
Areas\Identity\Pages\V4\Account\LoginWithRecoveryCode.cshtml.cs (2)
66
private readonly
SignInManager
<TUser> _signInManager;
71
SignInManager
<TUser> signInManager,
Areas\Identity\Pages\V4\Account\Logout.cshtml.cs (2)
36
private readonly
SignInManager
<TUser> _signInManager;
39
public LogoutModel(
SignInManager
<TUser> signInManager, ILogger<LogoutModel> logger)
Areas\Identity\Pages\V4\Account\Manage\ChangePassword.cshtml.cs (2)
83
private readonly
SignInManager
<TUser> _signInManager;
88
SignInManager
<TUser> signInManager,
Areas\Identity\Pages\V4\Account\Manage\DeletePersonalData.cshtml.cs (2)
62
private readonly
SignInManager
<TUser> _signInManager;
67
SignInManager
<TUser> signInManager,
Areas\Identity\Pages\V4\Account\Manage\Email.cshtml.cs (2)
84
private readonly
SignInManager
<TUser> _signInManager;
89
SignInManager
<TUser> signInManager,
Areas\Identity\Pages\V4\Account\Manage\ExternalLogins.cshtml.cs (2)
71
private readonly
SignInManager
<TUser> _signInManager;
76
SignInManager
<TUser> signInManager,
Areas\Identity\Pages\V4\Account\Manage\Index.cshtml.cs (2)
68
private readonly
SignInManager
<TUser> _signInManager;
72
SignInManager
<TUser> signInManager)
Areas\Identity\Pages\V4\Account\Manage\ResetAuthenticator.cshtml.cs (2)
40
private readonly
SignInManager
<TUser> _signInManager;
45
SignInManager
<TUser> signInManager,
Areas\Identity\Pages\V4\Account\Manage\SetPassword.cshtml.cs (2)
73
private readonly
SignInManager
<TUser> _signInManager;
77
SignInManager
<TUser> signInManager)
Areas\Identity\Pages\V4\Account\Manage\TwoFactorAuthentication.cshtml.cs (2)
65
private readonly
SignInManager
<TUser> _signInManager;
69
UserManager<TUser> userManager,
SignInManager
<TUser> signInManager, ILogger<TwoFactorAuthenticationModel> logger)
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (2)
95
private readonly
SignInManager
<TUser> _signInManager;
105
SignInManager
<TUser> signInManager,
Areas\Identity\Pages\V5\Account\ConfirmEmailChange.cshtml.cs (2)
37
private readonly
SignInManager
<TUser> _signInManager;
39
public ConfirmEmailChangeModel(UserManager<TUser> userManager,
SignInManager
<TUser> signInManager)
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (2)
93
private readonly
SignInManager
<TUser> _signInManager;
101
SignInManager
<TUser> signInManager,
Areas\Identity\Pages\V5\Account\Login.cshtml.cs (2)
94
private readonly
SignInManager
<TUser> _signInManager;
97
public LoginModel(
SignInManager
<TUser> signInManager, ILogger<LoginModel> logger)
Areas\Identity\Pages\V5\Account\LoginWith2fa.cshtml.cs (2)
79
private readonly
SignInManager
<TUser> _signInManager;
84
SignInManager
<TUser> signInManager,
Areas\Identity\Pages\V5\Account\LoginWithRecoveryCode.cshtml.cs (2)
66
private readonly
SignInManager
<TUser> _signInManager;
71
SignInManager
<TUser> signInManager,
Areas\Identity\Pages\V5\Account\Logout.cshtml.cs (2)
36
private readonly
SignInManager
<TUser> _signInManager;
39
public LogoutModel(
SignInManager
<TUser> signInManager, ILogger<LogoutModel> logger)
Areas\Identity\Pages\V5\Account\Manage\ChangePassword.cshtml.cs (2)
83
private readonly
SignInManager
<TUser> _signInManager;
88
SignInManager
<TUser> signInManager,
Areas\Identity\Pages\V5\Account\Manage\DeletePersonalData.cshtml.cs (2)
62
private readonly
SignInManager
<TUser> _signInManager;
67
SignInManager
<TUser> signInManager,
Areas\Identity\Pages\V5\Account\Manage\Email.cshtml.cs (2)
84
private readonly
SignInManager
<TUser> _signInManager;
89
SignInManager
<TUser> signInManager,
Areas\Identity\Pages\V5\Account\Manage\ExternalLogins.cshtml.cs (2)
71
private readonly
SignInManager
<TUser> _signInManager;
76
SignInManager
<TUser> signInManager,
Areas\Identity\Pages\V5\Account\Manage\Index.cshtml.cs (2)
68
private readonly
SignInManager
<TUser> _signInManager;
72
SignInManager
<TUser> signInManager)
Areas\Identity\Pages\V5\Account\Manage\ResetAuthenticator.cshtml.cs (2)
40
private readonly
SignInManager
<TUser> _signInManager;
45
SignInManager
<TUser> signInManager,
Areas\Identity\Pages\V5\Account\Manage\SetPassword.cshtml.cs (2)
73
private readonly
SignInManager
<TUser> _signInManager;
77
SignInManager
<TUser> signInManager)
Areas\Identity\Pages\V5\Account\Manage\TwoFactorAuthentication.cshtml.cs (2)
65
private readonly
SignInManager
<TUser> _signInManager;
69
UserManager<TUser> userManager,
SignInManager
<TUser> signInManager, ILogger<TwoFactorAuthenticationModel> logger)
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (2)
95
private readonly
SignInManager
<TUser> _signInManager;
105
SignInManager
<TUser> signInManager,