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.

C#
public static Microsoft.AspNetCore.Identity.IdentityBuilder AddApiEndpoints (this Microsoft.AspNetCore.Identity.IdentityBuilder builder);

Parameters

Returns

The IdentityBuilder.

Applies to

Proizvod Verzije
ASP.NET Core 8.0, 9.0