IdentityServiceCollectionExtensions.AddIdentityApiEndpoints Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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
- services
- IServiceCollection
The IServiceCollection.
Returns
The IdentityBuilder.
Applies to
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.
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
- services
- IServiceCollection
The IServiceCollection.
- configure
- Action<IdentityOptions>
Configures the IdentityOptions.
Returns
The IdentityBuilder.