21 instantiations of IdentityOptions
Microsoft.AspNetCore.Identity (1)
SignInManager.cs (1)
62Options = optionsAccessor?.Value ?? new IdentityOptions();
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
src\Identity\test\Shared\MockHelpers.cs (1)
53var idOptions = new IdentityOptions();
Microsoft.AspNetCore.Identity.InMemory.Test (1)
src\Identity\test\Shared\MockHelpers.cs (1)
53var 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)
54var identityOptions = new IdentityOptions(); 98var identityOptions = new IdentityOptions(); 145identityOptions = identityOptions ?? new IdentityOptions(); 1335var identityOptions = new IdentityOptions(); 1390var identityOptions = new IdentityOptions(); 1671var options = Options.Create(new IdentityOptions());
src\Identity\test\Shared\MockHelpers.cs (1)
53var 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)
82Options = optionsAccessor?.Value ?? new IdentityOptions();
91 references to IdentityOptions
Microsoft.AspNetCore.Identity (15)
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) 133/// <param name="configure">Configures the <see cref="IdentityOptions"/>.</param> 135public static IdentityBuilder AddIdentityApiEndpoints<TUser>(this IServiceCollection services, Action<IdentityOptions> configure)
PasskeyHandler.cs (1)
27/// <param name="options">The <see cref="IdentityOptions"/>.</param>
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)
43/// <param name="optionsAccessor">The accessor used to access the <see cref="IdentityOptions"/>.</param> 50IOptions<IdentityOptions> optionsAccessor, 89/// The <see cref="IdentityOptions"/> used. 91public 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 (5)
IdentityUserContext.cs (1)
140?.GetService<IOptions<IdentityOptions>>()
UserOnlyStore.cs (2)
767$"When using '{nameof(IdentityDbContext)}', make sure that '{nameof(IdentityOptions)}.{nameof(IdentityOptions.Stores)}.{nameof(StoreOptions.SchemaVersion)}' " +
UserStore.cs (2)
911$"When using '{nameof(IdentityDbContext)}', make sure that '{nameof(IdentityOptions)}.{nameof(IdentityOptions.Stores)}.{nameof(StoreOptions.SchemaVersion)}' " +
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (2)
src\Identity\test\Shared\MockHelpers.cs (2)
52var options = new Mock<IOptions<IdentityOptions>>(); 53var 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)
52var options = new Mock<IOptions<IdentityOptions>>(); 53var 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)
54var identityOptions = new IdentityOptions(); 55var options = new Mock<IOptions<IdentityOptions>>(); 98var identityOptions = new IdentityOptions(); 99var options = new Mock<IOptions<IdentityOptions>>(); 139IdentityOptions identityOptions = null, 146var options = new Mock<IOptions<IdentityOptions>>(); 1335var identityOptions = new IdentityOptions(); 1390var identityOptions = new IdentityOptions(); 1690IOptions<IdentityOptions> optionsAccessor) 1702IOptions<IdentityOptions> optionsAccessor) 1719IOptions<IdentityOptions> optionsAccessor)
src\Identity\test\Shared\MockHelpers.cs (2)
52var options = new Mock<IOptions<IdentityOptions>>(); 53var 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)
62/// <param name="optionsAccessor">The accessor used to access the <see cref="IdentityOptions"/>.</param> 71IOptions<IdentityOptions> optionsAccessor, 177/// The <see cref="IdentityOptions"/> used to configure Identity. 179public IdentityOptions Options { get; set; }