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