IdentityServiceCollectionExtensions.AddIdentityApiEndpoints 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
参数
- services
- IServiceCollection
返回
适用于
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
参数
- services
- IServiceCollection
- configure
- Action<IdentityOptions>
配置 IdentityOptions。