Share via


IdentityServiceCollectionExtensions.AddIdentityApiEndpoints Metoda

Definice

Přetížení

AddIdentityApiEndpoints<TUser>(IServiceCollection)

Přidá do aplikace sadu běžných služeb identit pro podporu MapIdentityApi<TUser>(IEndpointRouteBuilder) a nakonfiguruje ověřování tak, aby podporovalo nosné tokeny identit a soubory cookie.

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

Přidá do aplikace sadu běžných služeb identit pro podporu MapIdentityApi<TUser>(IEndpointRouteBuilder) a nakonfiguruje ověřování tak, aby podporovalo nosné tokeny identit a soubory cookie.

AddIdentityApiEndpoints<TUser>(IServiceCollection)

Přidá do aplikace sadu běžných služeb identit pro podporu MapIdentityApi<TUser>(IEndpointRouteBuilder) a nakonfiguruje ověřování tak, aby podporovalo nosné tokeny identit a soubory cookie.

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

Parametry typu

TUser

Parametry

Návraty

Hodnota IdentityBuilder

Platí pro

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

Přidá do aplikace sadu běžných služeb identit pro podporu MapIdentityApi<TUser>(IEndpointRouteBuilder) a nakonfiguruje ověřování tak, aby podporovalo nosné tokeny identit a soubory cookie.

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

Parametry typu

TUser

Parametry

configure
Action<IdentityOptions>

Nakonfiguruje .IdentityOptions

Návraty

Hodnota IdentityBuilder

Platí pro