IdentityBuilderExtensions Class

Definition

Helper functions for configuring identity services.

C#
public static class IdentityBuilderExtensions
Inheritance
IdentityBuilderExtensions

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.

Applies to

Product Versions
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0