Share via


IdentityServiceCollectionExtensions.AddIdentityApiEndpoints Method

Definition

Overloads

AddIdentityApiEndpoints<TUser>(IServiceCollection)

Adds a set of common identity services to the application to support MapIdentityApi<TUser>(IEndpointRouteBuilder) and configures authentication to support identity bearer tokens and cookies.

AddIdentityApiEndpoints<TUser>(IServiceCollection, Action<IdentityOptions>)

Adds a set of common identity services to the application to support MapIdentityApi<TUser>(IEndpointRouteBuilder) and configures authentication to support identity bearer tokens and cookies.

AddIdentityApiEndpoints<TUser>(IServiceCollection)

Source:
IdentityServiceCollectionExtensions.cs

Adds a set of common identity services to the application to support MapIdentityApi<TUser>(IEndpointRouteBuilder) and configures authentication to support identity bearer tokens and cookies.

public static Microsoft.AspNetCore.Identity.IdentityBuilder AddIdentityApiEndpoints<TUser> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TUser : class, new();
static member AddIdentityApiEndpoints : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'User : null and 'User : (new : unit -> 'User))
<Extension()>
Public Function AddIdentityApiEndpoints(Of TUser As {Class, New}) (services As IServiceCollection) As IdentityBuilder

Type Parameters

TUser

Parameters

Returns

The IdentityBuilder.

Applies to

AddIdentityApiEndpoints<TUser>(IServiceCollection, Action<IdentityOptions>)

Source:
IdentityServiceCollectionExtensions.cs

Adds a set of common identity services to the application to support MapIdentityApi<TUser>(IEndpointRouteBuilder) and configures authentication to support identity bearer tokens and cookies.

public static Microsoft.AspNetCore.Identity.IdentityBuilder AddIdentityApiEndpoints<TUser> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Identity.IdentityOptions> configure) where TUser : class, new();
static member AddIdentityApiEndpoints : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Identity.IdentityOptions> -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'User : null and 'User : (new : unit -> 'User))
<Extension()>
Public Function AddIdentityApiEndpoints(Of TUser As {Class, New}) (services As IServiceCollection, configure As Action(Of IdentityOptions)) As IdentityBuilder

Type Parameters

TUser

Parameters

configure
Action<IdentityOptions>

Configures the IdentityOptions.

Returns

The IdentityBuilder.

Applies to