次の方法で共有


IdentityServiceCollectionUIExtensions.AddDefaultIdentity メソッド

定義

オーバーロード

AddDefaultIdentity<TUser>(IServiceCollection)

既定の UI、トークン プロバイダーなど、一連の一般的な ID サービスをアプリケーションに追加し、ID Cookie を使用するように認証を構成します。

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

既定の UI、トークン プロバイダーなど、一連の一般的な ID サービスをアプリケーションに追加し、ID Cookie を使用するように認証を構成します。

AddDefaultIdentity<TUser>(IServiceCollection)

ソース:
IdentityServiceCollectionUIExtensions.cs
ソース:
IdentityServiceCollectionUIExtensions.cs
ソース:
IdentityServiceCollectionUIExtensions.cs
ソース:
IdentityServiceCollectionUIExtensions.cs
ソース:
IdentityServiceCollectionUIExtensions.cs
ソース:
IdentityServiceCollectionUIExtensions.cs
ソース:
IdentityServiceCollectionUIExtensions.cs
ソース:
IdentityServiceCollectionUIExtensions.cs
ソース:
IdentityServiceCollectionUIExtensions.cs

既定の UI、トークン プロバイダーなど、一連の一般的な ID サービスをアプリケーションに追加し、ID Cookie を使用するように認証を構成します。

public static Microsoft.AspNetCore.Identity.IdentityBuilder AddDefaultIdentity<TUser> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TUser : class;
static member AddDefaultIdentity : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'User : null)
<Extension()>
Public Function AddDefaultIdentity(Of TUser As Class) (services As IServiceCollection) As IdentityBuilder

型パラメーター

TUser

パラメーター

戻り値

IdentityBuilder

注釈

既定の UI を使用するには、アプリケーションで を使用Microsoft.AspNetCore.MvcMicrosoft.AspNetCore.StaticFilesし、アプリケーションで見つかる部分ビューを含める_LoginPartial必要があります。

適用対象

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

ソース:
IdentityServiceCollectionUIExtensions.cs
ソース:
IdentityServiceCollectionUIExtensions.cs
ソース:
IdentityServiceCollectionUIExtensions.cs
ソース:
IdentityServiceCollectionUIExtensions.cs
ソース:
IdentityServiceCollectionUIExtensions.cs
ソース:
IdentityServiceCollectionUIExtensions.cs
ソース:
IdentityServiceCollectionUIExtensions.cs
ソース:
IdentityServiceCollectionUIExtensions.cs
ソース:
IdentityServiceCollectionUIExtensions.cs

既定の UI、トークン プロバイダーなど、一連の一般的な ID サービスをアプリケーションに追加し、ID Cookie を使用するように認証を構成します。

public static Microsoft.AspNetCore.Identity.IdentityBuilder AddDefaultIdentity<TUser> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Identity.IdentityOptions> configureOptions) where TUser : class;
static member AddDefaultIdentity : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Identity.IdentityOptions> -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'User : null)
<Extension()>
Public Function AddDefaultIdentity(Of TUser As Class) (services As IServiceCollection, configureOptions As Action(Of IdentityOptions)) As IdentityBuilder

型パラメーター

TUser

パラメーター

configureOptions
Action<IdentityOptions>

IdentityOptions を構成します。

戻り値

IdentityBuilder

注釈

既定の UI を使用するには、アプリケーションで を使用Microsoft.AspNetCore.MvcMicrosoft.AspNetCore.StaticFilesし、アプリケーションで見つかる部分ビューを含める_LoginPartial必要があります。

適用対象