Dela via


IdentityBuilderExtensions Class

Definition

Helper functions for configuring identity services.

public ref class IdentityBuilderExtensions abstract sealed
public static class IdentityBuilderExtensions
type IdentityBuilderExtensions = class
Public Module 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