4 instantiations of IdentityBuilder
Microsoft.AspNetCore.Identity (1)
IdentityServiceCollectionExtensions.cs (1)
114return new IdentityBuilder(typeof(TUser), typeof(TRole), services);
Microsoft.AspNetCore.Identity.Test (2)
IdentityBuilderTest.cs (2)
32Assert.Throws<ArgumentException>(() => new IdentityBuilder(typeof(int), new ServiceCollection())); 38Assert.Throws<ArgumentException>(() => new IdentityBuilder(typeof(PocoUser), typeof(int), new ServiceCollection()));
Microsoft.Extensions.Identity.Core (1)
IdentityServiceCollectionExtensions.cs (1)
55return new IdentityBuilder(typeof(TUser), services);
96 references to IdentityBuilder
Microsoft.AspNetCore.Identity (27)
IdentityBuilderExtensions.cs (19)
25/// <param name="builder">The current <see cref="IdentityBuilder"/> instance.</param> 26/// <returns>The current <see cref="IdentityBuilder"/> instance.</returns> 28public static IdentityBuilder AddDefaultTokenProviders(this IdentityBuilder builder) 41private static void AddSignInManagerDeps(this IdentityBuilder builder) 50/// Adds a <see cref="SignInManager{TUser}"/> for the <see cref="IdentityBuilder.UserType"/>. 52/// <param name="builder">The current <see cref="IdentityBuilder"/> instance.</param> 53/// <returns>The current <see cref="IdentityBuilder"/> instance.</returns> 55public static IdentityBuilder AddSignInManager(this IdentityBuilder builder) 64/// Adds a <see cref="SignInManager{TUser}"/> for the <see cref="IdentityBuilder.UserType"/>. 67/// <param name="builder">The current <see cref="IdentityBuilder"/> instance.</param> 68/// <returns>The current <see cref="IdentityBuilder"/> instance.</returns> 70public static IdentityBuilder AddSignInManager<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TSignInManager>(this IdentityBuilder builder) where TSignInManager : class 92/// <param name="builder">The <see cref="IdentityBuilder"/>.</param> 93/// <returns>The <see cref="IdentityBuilder"/>.</returns> 94public static IdentityBuilder AddApiEndpoints(this IdentityBuilder builder)
IdentityServiceCollectionExtensions.cs (8)
29/// <returns>An <see cref="IdentityBuilder"/> for creating and configuring the identity system.</returns> 31public static IdentityBuilder AddIdentity<TUser, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TRole>( 44/// <returns>An <see cref="IdentityBuilder"/> for creating and configuring the identity system.</returns> 46public static IdentityBuilder AddIdentity<TUser, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TRole>( 122/// <returns>The <see cref="IdentityBuilder"/>.</returns> 123public static IdentityBuilder AddIdentityApiEndpoints<TUser>(this IServiceCollection services) 133/// <returns>The <see cref="IdentityBuilder"/>.</returns> 134public static IdentityBuilder AddIdentityApiEndpoints<TUser>(this IServiceCollection services, Action<IdentityOptions> configure)
Microsoft.AspNetCore.Identity.EntityFrameworkCore (5)
IdentityEntityFrameworkBuilderExtensions.cs (5)
12/// Contains extension methods to <see cref="IdentityBuilder"/> for adding entity framework stores. 20/// <param name="builder">The <see cref="IdentityBuilder"/> instance this method extends.</param> 21/// <returns>The <see cref="IdentityBuilder"/> instance this method extends.</returns> 22public static IdentityBuilder AddEntityFrameworkStores<TContext>(this IdentityBuilder builder)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (8)
UserStoreGuidKeyTest.cs (2)
61var builder = services.AddIdentity<GuidUser, GuidRole>().AddEntityFrameworkStores<TestDbContext>(); 78var builder = services.AddIdentityCore<IdentityUser<Guid>>().AddRoles<IdentityRole<Guid>>().AddEntityFrameworkStores<TestDbContext>();
UserStoreIntKeyTest.cs (2)
39var builder = services.AddIdentity<IntUser, IntRole>().AddEntityFrameworkStores<TestDbContext>(); 56var builder = services.AddIdentityCore<IdentityUser<int>>().AddRoles<IdentityRole<int>>().AddEntityFrameworkStores<TestDbContext>();
UserStoreStringKeyTest.cs (2)
40var builder = services.AddIdentity<StringUser, StringRole>().AddEntityFrameworkStores<TestDbContext>(); 57var builder = services.AddIdentityCore<IdentityUser<string>>().AddRoles<IdentityRole<string>>().AddEntityFrameworkStores<TestDbContext>();
UserStoreWithGenericsTest.cs (2)
82var builder = services.AddIdentity<object, IdentityRole>(); 91var builder = services.AddIdentity<IdentityUser, object>();
Microsoft.AspNetCore.Identity.FunctionalTests (3)
MapIdentityApiTests.cs (3)
1320private static IdentityBuilder AddIdentityApiEndpoints<TUser, TContext>(IServiceCollection services) 1328private static IdentityBuilder AddIdentityApiEndpoints(IServiceCollection services) 1331private static IdentityBuilder AddIdentityApiEndpointsBearerOnly(IServiceCollection services)
Microsoft.AspNetCore.Identity.Specification.Tests (4)
IdentitySpecificationTestBase.cs (2)
65protected override IdentityBuilder SetupBuilder(IServiceCollection services, object context) 67var builder = base.SetupBuilder(services, context);
UserManagerSpecificationTests.cs (2)
52protected virtual IdentityBuilder SetupBuilder(IServiceCollection services, object context) 57var builder = services.AddIdentityCore<TUser>(options =>
Microsoft.AspNetCore.Identity.Test (2)
IdentityBuilderTest.cs (2)
255var builder = services.AddIdentity<PocoUser, PocoRole>(); 266var builder = services.AddIdentity<PocoUser, PocoRole>();
Microsoft.AspNetCore.Identity.UI (10)
IdentityBuilderUIExtensions.cs (6)
17/// Default UI extensions to <see cref="IdentityBuilder"/>. 30/// <param name="builder">The <see cref="IdentityBuilder"/>.</param> 31/// <returns>The <see cref="IdentityBuilder"/>.</returns> 32public static IdentityBuilder AddDefaultUI(this IdentityBuilder builder) 68private static Assembly? GetApplicationAssembly(IdentityBuilder builder)
IdentityServiceCollectionUIExtensions.cs (4)
23/// <returns>The <see cref="IdentityBuilder"/>.</returns> 24public static IdentityBuilder AddDefaultIdentity<TUser>(this IServiceCollection services) where TUser : class 38/// <returns>The <see cref="IdentityBuilder"/>.</returns> 39public static IdentityBuilder AddDefaultIdentity<TUser>(this IServiceCollection services, Action<IdentityOptions> configureOptions) where TUser : class
Microsoft.Extensions.Identity.Core (37)
IdentityBuilder.cs (31)
19/// Creates a new instance of <see cref="IdentityBuilder"/>. 35/// Creates a new instance of <see cref="IdentityBuilder"/>. 75private IdentityBuilder AddScoped(Type serviceType, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type concreteType) 85/// <returns>The current <see cref="IdentityBuilder"/> instance.</returns> 87public virtual IdentityBuilder AddUserValidator<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TValidator>() where TValidator : class 94/// <returns>The current <see cref="IdentityBuilder"/> instance.</returns> 96public virtual IdentityBuilder AddClaimsPrincipalFactory<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TFactory>() where TFactory : class 103/// <returns>The current <see cref="IdentityBuilder"/> instance.</returns> 104public virtual IdentityBuilder AddErrorDescriber<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TDescriber>() where TDescriber : IdentityErrorDescriber 114/// <returns>The current <see cref="IdentityBuilder"/> instance.</returns> 116public virtual IdentityBuilder AddPasswordValidator<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TValidator>() where TValidator : class 123/// <returns>The current <see cref="IdentityBuilder"/> instance.</returns> 125public virtual IdentityBuilder AddUserStore<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TStore>() where TStore : class 133/// <returns>The current <see cref="IdentityBuilder"/> instance.</returns> 134public virtual IdentityBuilder AddTokenProvider<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TProvider>(string providerName) where TProvider : class 142/// <returns>The current <see cref="IdentityBuilder"/> instance.</returns> 144public virtual IdentityBuilder AddTokenProvider(string providerName, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type provider) 172/// <returns>The current <see cref="IdentityBuilder"/> instance.</returns> 174public virtual IdentityBuilder AddUserManager<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TUserManager>() where TUserManager : class 193/// <returns>The current <see cref="IdentityBuilder"/> instance.</returns> 195public virtual IdentityBuilder AddRoles<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TRole>() where TRole : class 208/// <returns>The current <see cref="IdentityBuilder"/> instance.</returns> 210public virtual IdentityBuilder AddRoleValidator<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TRole>() where TRole : class 224/// <returns>The current <see cref="IdentityBuilder"/> instance.</returns> 225public virtual IdentityBuilder AddPersonalDataProtection<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TProtector, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TKeyRing>() 239/// <returns>The current <see cref="IdentityBuilder"/> instance.</returns> 241public virtual IdentityBuilder AddRoleStore<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TStore>() where TStore : class 254/// <returns>The current <see cref="IdentityBuilder"/> instance.</returns> 256public virtual IdentityBuilder AddRoleManager<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TRoleManager>() where TRoleManager : class 279/// <returns>The current <see cref="IdentityBuilder"/> instance.</returns> 281public virtual IdentityBuilder AddUserConfirmation<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TUserConfirmation>() where TUserConfirmation : class
IdentityServiceCollectionExtensions.cs (6)
17/// by default but can be added with <see cref="IdentityBuilder.AddRoles{TRole}"/>. 21/// <returns>An <see cref="IdentityBuilder"/> for creating and configuring the identity system.</returns> 22public static IdentityBuilder AddIdentityCore<TUser>(this IServiceCollection services) where TUser : class 27/// but can be added with <see cref="IdentityBuilder.AddRoles{TRole}"/>. 32/// <returns>An <see cref="IdentityBuilder"/> for creating and configuring the identity system.</returns> 33public static IdentityBuilder AddIdentityCore<TUser>(this IServiceCollection services, Action<IdentityOptions> setupAction)