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 。