IdentityApiEndpointRouteBuilderExtensions.MapIdentityApi<TUser> Method

Definition

Add endpoints for registering, logging in, and logging out using ASP.NET Core Identity.

C#
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapIdentityApi<TUser> (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints) where TUser : class, new();

Type Parameters

TUser

The type describing the user. This should match the generic parameter in UserManager<TUser>.

Parameters

endpoints
IEndpointRouteBuilder

The IEndpointRouteBuilder to add the identity endpoints to. Call MapGroup(IEndpointRouteBuilder, String) to add a prefix to all the endpoints.

Returns

An IEndpointConventionBuilder to further customize the added endpoints.

Applies to

Proizvod Verzije
ASP.NET Core 8.0, 9.0