IdentityServiceCollectionUIExtensions.AddDefaultIdentity IdentityServiceCollectionUIExtensions.AddDefaultIdentity IdentityServiceCollectionUIExtensions.AddDefaultIdentity IdentityServiceCollectionUIExtensions.AddDefaultIdentity Method

Definition

Overloads

AddDefaultIdentity<TUser>(IServiceCollection) AddDefaultIdentity<TUser>(IServiceCollection) AddDefaultIdentity<TUser>(IServiceCollection) AddDefaultIdentity<TUser>(IServiceCollection)

Adds a set of common identity services to the application, including a default UI, token providers, and configures authentication to use identity cookies.

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

Adds a set of common identity services to the application, including a default UI, token providers, and configures authentication to use identity cookies.

AddDefaultIdentity<TUser>(IServiceCollection) AddDefaultIdentity<TUser>(IServiceCollection) AddDefaultIdentity<TUser>(IServiceCollection) AddDefaultIdentity<TUser>(IServiceCollection)

Adds a set of common identity services to the application, including a default UI, token providers, and configures authentication to use identity cookies.

public:
generic <typename TUser>
 where TUser : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Identity::IdentityBuilder ^ AddDefaultIdentity(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
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

Type Parameters

TUser

Parameters

services
Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection

The Microsoft.Extensions.DependencyInjection.IServiceCollection.

Returns

Remarks

In order to use the default UI, the application must be using Microsoft.AspNetCore.Mvc, Microsoft.AspNetCore.StaticFiles and contain a _LoginPartial partial view that can be found by the application.

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

Adds a set of common identity services to the application, including a default UI, token providers, and configures authentication to use identity cookies.

public:
generic <typename TUser>
 where TUser : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Identity::IdentityBuilder ^ AddDefaultIdentity(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::AspNetCore::Identity::IdentityOptions ^> ^ configureOptions);
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

Type Parameters

TUser

Parameters

services
Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection

The Microsoft.Extensions.DependencyInjection.IServiceCollection.

configureOptions
Action<IdentityOptions>

Configures the IdentityOptions.

Returns

Remarks

In order to use the default UI, the application must be using Microsoft.AspNetCore.Mvc, Microsoft.AspNetCore.StaticFiles and contain a _LoginPartial partial view that can be found by the application.

Applies to