1 write to UserType
Microsoft.Extensions.Identity.Core (1)
IdentityBuilder.cs (1)
30
UserType
= user;
31 references to UserType
Microsoft.AspNetCore.Identity (11)
IdentityBuilderExtensions.cs (11)
30
var dataProtectionProviderType = typeof(DataProtectorTokenProvider<>).MakeGenericType(builder.
UserType
);
31
var phoneNumberProviderType = typeof(PhoneNumberTokenProvider<>).MakeGenericType(builder.
UserType
);
32
var emailTokenProviderType = typeof(EmailTokenProvider<>).MakeGenericType(builder.
UserType
);
33
var authenticatorProviderType = typeof(AuthenticatorTokenProvider<>).MakeGenericType(builder.
UserType
);
44
builder.Services.AddScoped(typeof(ISecurityStampValidator), typeof(SecurityStampValidator<>).MakeGenericType(builder.
UserType
));
45
builder.Services.AddScoped(typeof(ITwoFactorSecurityStampValidator), typeof(TwoFactorSecurityStampValidator<>).MakeGenericType(builder.
UserType
));
50
/// Adds a <see cref="SignInManager{TUser}"/> for the <see cref="IdentityBuilder.
UserType
"/>.
58
var managerType = typeof(SignInManager<>).MakeGenericType(builder.
UserType
);
64
/// Adds a <see cref="SignInManager{TUser}"/> for the <see cref="IdentityBuilder.
UserType
"/>.
73
var managerType = typeof(SignInManager<>).MakeGenericType(builder.
UserType
);
77
throw new InvalidOperationException(Resources.FormatInvalidManagerType(customType.Name, "SignInManager", builder.
UserType
.Name));
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1)
IdentityEntityFrameworkBuilderExtensions.cs (1)
25
AddStores(builder.Services, builder.
UserType
, builder.RoleType, typeof(TContext));
Microsoft.AspNetCore.Identity.UI (1)
IdentityBuilderUIExtensions.cs (1)
61
.MakeGenericType(builder.
UserType
));
Microsoft.Extensions.Identity.Core (18)
IdentityBuilder.cs (18)
82
/// Adds an <see cref="IUserValidator{TUser}"/> for the <see cref="
UserType
"/>.
88
=> AddScoped(typeof(IUserValidator<>).MakeGenericType(
UserType
), typeof(TValidator));
91
/// Adds an <see cref="IUserClaimsPrincipalFactory{TUser}"/> for the <see cref="
UserType
"/>.
97
=> AddScoped(typeof(IUserClaimsPrincipalFactory<>).MakeGenericType(
UserType
), typeof(TFactory));
111
/// Adds an <see cref="IPasswordValidator{TUser}"/> for the <see cref="
UserType
"/>.
117
=> AddScoped(typeof(IPasswordValidator<>).MakeGenericType(
UserType
), typeof(TValidator));
120
/// Adds an <see cref="IUserStore{TUser}"/> for the <see cref="
UserType
"/>.
126
=> AddScoped(typeof(IUserStore<>).MakeGenericType(
UserType
), typeof(TStore));
138
/// Adds a token provider for the <see cref="
UserType
"/>.
146
if (!typeof(IUserTwoFactorTokenProvider<>).MakeGenericType(
UserType
).IsAssignableFrom(provider))
148
throw new InvalidOperationException(Resources.FormatInvalidManagerType(provider.Name, "IUserTwoFactorTokenProvider",
UserType
.Name));
169
/// Adds a <see cref="UserManager{TUser}"/> for the <see cref="
UserType
"/>.
176
var userManagerType = typeof(UserManager<>).MakeGenericType(
UserType
);
180
throw new InvalidOperationException(Resources.FormatInvalidManagerType(customType.Name, "UserManager",
UserType
.Name));
200
Services.AddScoped(typeof(IUserClaimsPrincipalFactory<>).MakeGenericType(
UserType
), typeof(UserClaimsPrincipalFactory<,>).MakeGenericType(
UserType
, RoleType));
276
/// Adds a <see cref="IUserConfirmation{TUser}"/> for the <seealso cref="
UserType
"/>.
282
=> AddScoped(typeof(IUserConfirmation<>).MakeGenericType(
UserType
), typeof(TUserConfirmation));