IdentityServiceCollectionExtensions.AddIdentityApiEndpoints 方法

定义

重载

AddIdentityApiEndpoints<TUser>(IServiceCollection)

向应用程序添加一组通用标识服务,以支持 MapIdentityApi<TUser>(IEndpointRouteBuilder) 和配置身份验证以支持标识持有者令牌和 Cookie。

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

向应用程序添加一组通用标识服务,以支持 MapIdentityApi<TUser>(IEndpointRouteBuilder) 和配置身份验证以支持标识持有者令牌和 Cookie。

AddIdentityApiEndpoints<TUser>(IServiceCollection)

向应用程序添加一组通用标识服务,以支持 MapIdentityApi<TUser>(IEndpointRouteBuilder) 和配置身份验证以支持标识持有者令牌和 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

类型参数

TUser

参数

返回

IdentityBuilder

适用于

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

向应用程序添加一组通用标识服务,以支持 MapIdentityApi<TUser>(IEndpointRouteBuilder) 和配置身份验证以支持标识持有者令牌和 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

类型参数

TUser

参数

configure
Action<IdentityOptions>

配置 IdentityOptions

返回

IdentityBuilder

适用于