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