Share via


IdentityApiEndpointRouteBuilderExtensions.MapIdentityApi<TUser> Method

Definition

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

public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapIdentityApi<TUser> (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints) where TUser : class, new();
static member MapIdentityApi : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder (requires 'User : null and 'User : (new : unit -> 'User))
<Extension()>
Public Function MapIdentityApi(Of TUser As {Class, New}) (endpoints As IEndpointRouteBuilder) As IEndpointConventionBuilder

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