IdentityBuilderExtensions.AddApiEndpoints(IdentityBuilder) 方法

定义

添加了支持 MapIdentityApi<TUser>(IEndpointRouteBuilder) 但未配置身份验证所需的配置和服务。 调用 AddBearerToken(AuthenticationBuilder, Action<BearerTokenOptions>) 和/或 AddIdentityCookies(AuthenticationBuilder) 单独配置身份验证。

public static Microsoft.AspNetCore.Identity.IdentityBuilder AddApiEndpoints (this Microsoft.AspNetCore.Identity.IdentityBuilder builder);
static member AddApiEndpoints : Microsoft.AspNetCore.Identity.IdentityBuilder -> Microsoft.AspNetCore.Identity.IdentityBuilder
<Extension()>
Public Function AddApiEndpoints (builder As IdentityBuilder) As IdentityBuilder

参数

返回

IdentityBuilder

适用于