1 implementation of IUserClaimsPrincipalFactory
Microsoft.Extensions.Identity.Core (1)
UserClaimsPrincipalFactory.cs (1)
16public class UserClaimsPrincipalFactory<TUser> : IUserClaimsPrincipalFactory<TUser>
21 references to IUserClaimsPrincipalFactory
Microsoft.AspNetCore.Identity (4)
IdentityServiceCollectionExtensions.cs (1)
103services.TryAddScoped<IUserClaimsPrincipalFactory<TUser>, UserClaimsPrincipalFactory<TUser, TRole>>();
SignInManager.cs (3)
42IUserClaimsPrincipalFactory<TUser> claimsFactory, 75/// The <see cref="IUserClaimsPrincipalFactory{TUser}"/> used. 77public IUserClaimsPrincipalFactory<TUser> ClaimsFactory { get; set; }
Microsoft.AspNetCore.Identity.Test (13)
IdentityBuilderTest.cs (3)
26Assert.IsType<UserClaimsPrincipalFactory<PocoUser, PocoRole>>(sp.GetRequiredService<IUserClaimsPrincipalFactory<PocoUser>>()); 84var thingy = services.BuildServiceProvider().GetRequiredService<IUserClaimsPrincipalFactory<PocoUser>>() as MyClaimsPrincipalFactory; 396public MySignInManager(UserManager<PocoUser> manager, IHttpContextAccessor context, IUserClaimsPrincipalFactory<PocoUser> claimsFactory) : base(manager, context, claimsFactory, null, null, null, null) { }
SecurityStampValidatorTest.cs (6)
98var claimsManager = new Mock<IUserClaimsPrincipalFactory<PocoUser>>(); 161var claimsManager = new Mock<IUserClaimsPrincipalFactory<PocoUser>>(); 204var claimsManager = new Mock<IUserClaimsPrincipalFactory<PocoUser>>(); 243var claimsManager = new Mock<IUserClaimsPrincipalFactory<PocoUser>>(); 280var claimsManager = new Mock<IUserClaimsPrincipalFactory<PocoUser>>(); 326var claimsManager = new Mock<IUserClaimsPrincipalFactory<PocoUser>>();
SignInManagerTest.cs (4)
621new Mock<IUserClaimsPrincipalFactory<PocoUser>>().Object, 1302IUserClaimsPrincipalFactory<TUser> claimsFactory, 1314IUserClaimsPrincipalFactory<TUser> claimsFactory, 1331IUserClaimsPrincipalFactory<TUser> claimsFactory,
Microsoft.Extensions.Identity.Core (4)
IdentityBuilder.cs (3)
91/// Adds an <see cref="IUserClaimsPrincipalFactory{TUser}"/> for the <see cref="UserType"/>. 97=> AddScoped(typeof(IUserClaimsPrincipalFactory<>).MakeGenericType(UserType), typeof(TFactory)); 200Services.AddScoped(typeof(IUserClaimsPrincipalFactory<>).MakeGenericType(UserType), typeof(UserClaimsPrincipalFactory<,>).MakeGenericType(UserType, RoleType));
IdentityServiceCollectionExtensions.cs (1)
47services.TryAddScoped<IUserClaimsPrincipalFactory<TUser>, UserClaimsPrincipalFactory<TUser>>();