Dela via


IdentityBuilderExtensions.AddApiEndpoints(IdentityBuilder) Method

Definition

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.

public static Microsoft.AspNetCore.Identity.IdentityBuilder AddApiEndpoints (this Microsoft.AspNetCore.Identity.IdentityBuilder builder);
static member AddApiEndpoints : Microsoft.AspNetCore.Identity.IdentityBuilder -> Microsoft.AspNetCore.Identity.IdentityBuilder
<Extension()>
Public Function AddApiEndpoints (builder As IdentityBuilder) As IdentityBuilder

Parameters

Returns

The IdentityBuilder.

Applies to