21 instantiations of IdentityOptions
Microsoft.AspNetCore.Identity (1)
SignInManager.cs (1)
55Options = optionsAccessor?.Value ?? new IdentityOptions();
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
src\Identity\test\Shared\MockHelpers.cs (1)
37var idOptions = new IdentityOptions();
Microsoft.AspNetCore.Identity.InMemory.Test (1)
src\Identity\test\Shared\MockHelpers.cs (1)
37var idOptions = new IdentityOptions();
Microsoft.AspNetCore.Identity.Test (17)
IdentityOptionsTest.cs (1)
16var options = new IdentityOptions();
SecurityStampValidatorTest.cs (6)
100identityOptions.Setup(a => a.Value).Returns(new IdentityOptions()); 163identityOptions.Setup(a => a.Value).Returns(new IdentityOptions()); 203identityOptions.Setup(a => a.Value).Returns(new IdentityOptions()); 242identityOptions.Setup(a => a.Value).Returns(new IdentityOptions()); 279identityOptions.Setup(a => a.Value).Returns(new IdentityOptions()); 328identityOptions.Setup(a => a.Value).Returns(new IdentityOptions());
SignInManagerTest.cs (6)
43var identityOptions = new IdentityOptions(); 73var identityOptions = new IdentityOptions(); 105identityOptions = identityOptions ?? new IdentityOptions(); 948var identityOptions = new IdentityOptions(); 1003var identityOptions = new IdentityOptions(); 1284var options = Options.Create(new IdentityOptions());
src\Identity\test\Shared\MockHelpers.cs (1)
37var idOptions = new IdentityOptions();
UserClaimsPrincipalFactoryTest.cs (3)
20var identityOptions = new IdentityOptions(); 66userManager.Object.Options = new IdentityOptions(); 81var identityOptions = new IdentityOptions();
Microsoft.Extensions.Identity.Core (1)
UserManager.cs (1)
81Options = optionsAccessor?.Value ?? new IdentityOptions();
86 references to IdentityOptions
Microsoft.AspNetCore.Identity (14)
AspNetUserManager.cs (2)
23/// <param name="optionsAccessor">The accessor used to access the <see cref="IdentityOptions"/>.</param> 32IOptions<IdentityOptions> optionsAccessor,
IdentityServiceCollectionExtensions.cs (4)
43/// <param name="setupAction">An action to configure the <see cref="IdentityOptions"/>.</param> 48Action<IdentityOptions> setupAction) 132/// <param name="configure">Configures the <see cref="IdentityOptions"/>.</param> 134public static IdentityBuilder AddIdentityApiEndpoints<TUser>(this IServiceCollection services, Action<IdentityOptions> configure)
SecurityStampValidator.cs (2)
22/// <param name="options">Used to access the <see cref="IdentityOptions"/>.</param> 41/// <param name="options">Used to access the <see cref="IdentityOptions"/>.</param>
SignInManager.cs (4)
36/// <param name="optionsAccessor">The accessor used to access the <see cref="IdentityOptions"/>.</param> 43IOptions<IdentityOptions> optionsAccessor, 80/// The <see cref="IdentityOptions"/> used. 82public IdentityOptions Options { get; set; }
TwoFactorSecurityStampValidator.cs (2)
21/// <param name="options">Used to access the <see cref="IdentityOptions"/>.</param> 32/// <param name="options">Used to access the <see cref="IdentityOptions"/>.</param>
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1)
IdentityUserContext.cs (1)
106?.GetService<IOptions<IdentityOptions>>()
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (2)
src\Identity\test\Shared\MockHelpers.cs (2)
36var options = new Mock<IOptions<IdentityOptions>>(); 37var idOptions = new IdentityOptions();
Microsoft.AspNetCore.Identity.FunctionalTests (16)
Infrastructure\FunctionalTestsServiceCollectionExtensions.cs (2)
42services.Configure<IdentityOptions>(o => o.SignIn.RequireConfirmedEmail = true); 55services.Configure<IdentityOptions>(o => o.Lockout.MaxFailedAccessAttempts = 0);
MapIdentityApiTests.cs (10)
428services.Configure<IdentityOptions>(options => 457services.Configure<IdentityOptions>(options => 486services.Configure<IdentityOptions>(options => 511services.Configure<IdentityOptions>(options => 536services.Configure<IdentityOptions>(options => 596services.Configure<IdentityOptions>(options => 639services.Configure<IdentityOptions>(options => 956services.Configure<IdentityOptions>(options => 1027services.Configure<IdentityOptions>(options => 1118services.Configure<IdentityOptions>(options =>
RegistrationTests.cs (4)
44void ConfigureTestServices(IServiceCollection services) { services.Configure<IdentityOptions>(o => o.SignIn.RequireConfirmedAccount = true); }; 75services.Configure<IdentityOptions>(o => o.SignIn.RequireConfirmedAccount = true); 138services.Configure<IdentityOptions>(o => o.SignIn.RequireConfirmedAccount = true) 163.Configure<IdentityOptions>(o => o.SignIn.RequireConfirmedAccount = true)
Microsoft.AspNetCore.Identity.InMemory.Test (3)
FunctionalTest.cs (1)
32var server = await CreateServer(services => services.Configure<IdentityOptions>(options =>
src\Identity\test\Shared\MockHelpers.cs (2)
36var options = new Mock<IOptions<IdentityOptions>>(); 37var idOptions = new IdentityOptions();
Microsoft.AspNetCore.Identity.Specification.Tests (1)
UserManagerSpecificationTests.cs (1)
1544configureServices: s => s.Configure<IdentityOptions>(
Microsoft.AspNetCore.Identity.Test (33)
ApiConsistencyTest.cs (1)
10protected override Assembly TargetAssembly => typeof(IdentityOptions).Assembly;
IdentityBuilderTest.cs (2)
246var tokenProviders = provider.GetRequiredService<IOptions<IdentityOptions>>().Value.Tokens.ProviderMap.Values; 406public MyClaimsPrincipalFactory(UserManager<PocoUser> userManager, RoleManager<PocoRole> roleManager, IOptions<IdentityOptions> optionsAccessor) : base(userManager, roleManager, optionsAccessor)
IdentityOptionsTest.cs (7)
16var options = new IdentityOptions(); 40var services = new ServiceCollection().Configure<IdentityOptions>(options => options.Password.RequiredLength = -1); 44var setup = serviceProvider.GetRequiredService<IConfigureOptions<IdentityOptions>>(); 46var optionsGetter = serviceProvider.GetRequiredService<IOptions<IdentityOptions>>(); 48var myOptions = optionsGetter.Value; 64var optionsGetter = serviceProvider.GetRequiredService<IOptions<IdentityOptions>>(); 67var myOptions = optionsGetter.Value;
SecurityStampValidatorTest.cs (6)
99var identityOptions = new Mock<IOptions<IdentityOptions>>(); 162var identityOptions = new Mock<IOptions<IdentityOptions>>(); 202var identityOptions = new Mock<IOptions<IdentityOptions>>(); 241var identityOptions = new Mock<IOptions<IdentityOptions>>(); 278var identityOptions = new Mock<IOptions<IdentityOptions>>(); 327var identityOptions = new Mock<IOptions<IdentityOptions>>();
SignInManagerTest.cs (11)
43var identityOptions = new IdentityOptions(); 44var options = new Mock<IOptions<IdentityOptions>>(); 73var identityOptions = new IdentityOptions(); 74var options = new Mock<IOptions<IdentityOptions>>(); 100private static SignInManager<PocoUser> SetupSignInManager(UserManager<PocoUser> manager, HttpContext context, ILogger logger = null, IdentityOptions identityOptions = null, IAuthenticationSchemeProvider schemeProvider = null) 106var options = new Mock<IOptions<IdentityOptions>>(); 948var identityOptions = new IdentityOptions(); 1003var identityOptions = new IdentityOptions(); 1303IOptions<IdentityOptions> optionsAccessor) 1315IOptions<IdentityOptions> optionsAccessor) 1332IOptions<IdentityOptions> optionsAccessor)
src\Identity\test\Shared\MockHelpers.cs (2)
36var options = new Mock<IOptions<IdentityOptions>>(); 37var idOptions = new IdentityOptions();
UserClaimsPrincipalFactoryTest.cs (4)
17var options = new Mock<IOptions<IdentityOptions>>(); 20var identityOptions = new IdentityOptions(); 80var options = new Mock<IOptions<IdentityOptions>>(); 81var identityOptions = new IdentityOptions();
Microsoft.AspNetCore.Identity.UI (2)
IdentityServiceCollectionUIExtensions.cs (2)
37/// <param name="configureOptions">Configures the <see cref="IdentityOptions"/>.</param> 39public static IdentityBuilder AddDefaultIdentity<TUser>(this IServiceCollection services, Action<IdentityOptions> configureOptions) where TUser : class
Microsoft.Extensions.Identity.Core (14)
IdentityBuilder.cs (1)
150Services.Configure<IdentityOptions>(options =>
IdentityServiceCollectionExtensions.cs (2)
31/// <param name="setupAction">An action to configure the <see cref="IdentityOptions"/>.</param> 33public static IdentityBuilder AddIdentityCore<TUser>(this IServiceCollection services, Action<IdentityOptions> setupAction)
UserClaimsPrincipalFactory.cs (7)
23/// <param name="optionsAccessor">The configured <see cref="IdentityOptions"/>.</param> 26IOptions<IdentityOptions> optionsAccessor) 47/// Gets the <see cref="IdentityOptions"/> for this factory. 50/// The current <see cref="IdentityOptions"/> for this factory instance. 52public IdentityOptions Options { get; private set; } 115/// <param name="options">The configured <see cref="IdentityOptions"/>.</param> 116public UserClaimsPrincipalFactory(UserManager<TUser> userManager, RoleManager<TRole> roleManager, IOptions<IdentityOptions> options)
UserManager.cs (4)
61/// <param name="optionsAccessor">The accessor used to access the <see cref="IdentityOptions"/>.</param> 70IOptions<IdentityOptions> optionsAccessor, 175/// The <see cref="IdentityOptions"/> used to configure Identity. 177public IdentityOptions Options { get; set; }