IdentityBuilder IdentityBuilder IdentityBuilder Class

Definition

Helper functions for configuring identity services.

public class IdentityBuilder
type IdentityBuilder = class
Public Class IdentityBuilder
Inheritance
IdentityBuilderIdentityBuilderIdentityBuilder

Constructors

IdentityBuilder(Type, IServiceCollection) IdentityBuilder(Type, IServiceCollection) IdentityBuilder(Type, IServiceCollection)

Creates a new instance of IdentityBuilder.

IdentityBuilder(Type, Type, IServiceCollection) IdentityBuilder(Type, Type, IServiceCollection) IdentityBuilder(Type, Type, IServiceCollection)

Creates a new instance of IdentityBuilder.

Properties

RoleType RoleType RoleType

Gets the Type used for roles.

Services Services Services

Gets the IServiceCollection services are attached to.

UserType UserType UserType

Gets the Type used for users.

Methods

AddClaimsPrincipalFactory<TFactory>() AddClaimsPrincipalFactory<TFactory>() AddClaimsPrincipalFactory<TFactory>()

Adds an IUserClaimsPrincipalFactory<TUser> for the .

AddDefaultTokenProviders() AddDefaultTokenProviders() AddDefaultTokenProviders()

Adds the default token providers used to generate tokens for reset passwords, change email and change telephone number operations, and for two factor authentication token generation.

AddErrorDescriber<TDescriber>() AddErrorDescriber<TDescriber>() AddErrorDescriber<TDescriber>()

Adds an IdentityErrorDescriber.

AddPasswordValidator<TValidator>() AddPasswordValidator<TValidator>() AddPasswordValidator<TValidator>()

Adds an IPasswordValidator<TUser> for the .

AddPersonalDataProtection<TProtector,TKeyRing>() AddPersonalDataProtection<TProtector,TKeyRing>() AddPersonalDataProtection<TProtector,TKeyRing>()

Adds an ILookupProtector and ILookupProtectorKeyRing.

AddRoleManager<TRoleManager>() AddRoleManager<TRoleManager>() AddRoleManager<TRoleManager>()

Adds a RoleManager<TRole> for the .

AddRoles<TRole>() AddRoles<TRole>() AddRoles<TRole>()

Adds Role related services for TRole, including IRoleStore, IRoleValidator, and RoleManager.

AddRoleStore<TStore>() AddRoleStore<TStore>() AddRoleStore<TStore>()

Adds a IRoleStore<TRole> for the .

AddRoleValidator<TRole>() AddRoleValidator<TRole>() AddRoleValidator<TRole>()

Adds an IRoleValidator<TRole> for the .

AddSignInManager<TSignInManager>() AddSignInManager<TSignInManager>() AddSignInManager<TSignInManager>()

Adds a SignInManager<TUser> for the .

AddTokenProvider(String, Type) AddTokenProvider(String, Type) AddTokenProvider(String, Type)

Adds a token provider for the .

AddTokenProvider<TProvider>(String) AddTokenProvider<TProvider>(String) AddTokenProvider<TProvider>(String)

Adds a token provider.

AddUserManager<TUserManager>() AddUserManager<TUserManager>() AddUserManager<TUserManager>()

Adds a UserManager<TUser> for the .

AddUserStore<TStore>() AddUserStore<TStore>() AddUserStore<TStore>()

Adds an IUserStore<TUser> for the .

AddUserValidator<TValidator>() AddUserValidator<TValidator>() AddUserValidator<TValidator>()

Adds an IUserValidator<TUser> for the .

Extension Methods

AddDefaultTokenProviders(IdentityBuilder) AddDefaultTokenProviders(IdentityBuilder) AddDefaultTokenProviders(IdentityBuilder)

Adds the default token providers used to generate tokens for reset passwords, change email and change telephone number operations, and for two factor authentication token generation.

AddSignInManager(IdentityBuilder) AddSignInManager(IdentityBuilder) AddSignInManager(IdentityBuilder)

Adds a SignInManager<TUser> for the .

AddSignInManager<TSignInManager>(IdentityBuilder) AddSignInManager<TSignInManager>(IdentityBuilder) AddSignInManager<TSignInManager>(IdentityBuilder)

Adds a SignInManager<TUser> for the .

AddDefaultUI(IdentityBuilder) AddDefaultUI(IdentityBuilder) AddDefaultUI(IdentityBuilder)

Adds a default, self-contained UI for Identity to the application using Razor Pages in an area named Identity.

AddDefaultUI(IdentityBuilder, UIFramework) AddDefaultUI(IdentityBuilder, UIFramework) AddDefaultUI(IdentityBuilder, UIFramework)

Adds a default, self-contained UI for Identity to the application using Razor Pages in an area named Identity.

AddEntityFrameworkStores<TContext>(IdentityBuilder) AddEntityFrameworkStores<TContext>(IdentityBuilder) AddEntityFrameworkStores<TContext>(IdentityBuilder)

Adds an Entity Framework implementation of identity information stores.

AddEntityFrameworkStores<TContext,TKey>(IdentityBuilder) AddEntityFrameworkStores<TContext,TKey>(IdentityBuilder) AddEntityFrameworkStores<TContext,TKey>(IdentityBuilder)

Adds an Entity Framework implementation of identity information stores.

Applies to