IdentityBuilder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Helper functions for configuring identity services.
public ref class IdentityBuilder
public class IdentityBuilder
type IdentityBuilder = class
Public Class IdentityBuilder
- Inheritance
-
IdentityBuilder
Constructors
IdentityBuilder(Type, IServiceCollection) |
Creates a new instance of IdentityBuilder. |
IdentityBuilder(Type, Type, IServiceCollection) |
Creates a new instance of IdentityBuilder. |
Properties
RoleType |
Gets the Type used for roles. |
Services |
Gets the IServiceCollection services are attached to. |
UserType |
Gets the Type used for users. |
Methods
Extension Methods
AddApiEndpoints(IdentityBuilder) |
Adds configuration and services needed to support MapIdentityApi<TUser>(IEndpointRouteBuilder) but does not configure authentication. Call AddBearerToken(AuthenticationBuilder, Action<BearerTokenOptions>) and/or AddIdentityCookies(AuthenticationBuilder) to configure authentication separately. |
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) |
Adds a SignInManager<TUser> for the UserType. |
AddSignInManager<TSignInManager>(IdentityBuilder) |
Adds a SignInManager<TUser> for the UserType. |
AddDefaultUI(IdentityBuilder, UIFramework) |
Adds a default, self-contained UI for Identity to the application using Razor Pages in an area named Identity. |
AddDefaultUI(IdentityBuilder) |
Adds a default, self-contained UI for Identity to the application using Razor Pages in an area named Identity. |
AddEntityFrameworkStores<TContext>(IdentityBuilder) |
Adds an Entity Framework implementation of identity information stores. |
AddEntityFrameworkStores<TContext,TKey>(IdentityBuilder) |