IdentityServiceCollectionExtensions IdentityServiceCollectionExtensions IdentityServiceCollectionExtensions Class

Definition

Contains extension methods to IServiceCollection for configuring identity services.

public static class IdentityServiceCollectionExtensions
type IdentityServiceCollectionExtensions = class
Public Module IdentityServiceCollectionExtensions
Inheritance
IdentityServiceCollectionExtensionsIdentityServiceCollectionExtensionsIdentityServiceCollectionExtensions

Methods

AddIdentity<TUser,TRole>(IServiceCollection) AddIdentity<TUser,TRole>(IServiceCollection) AddIdentity<TUser,TRole>(IServiceCollection)

Adds the default identity system configuration for the specified User and Role types.

AddIdentity<TUser,TRole>(IServiceCollection, Action<IdentityOptions>) AddIdentity<TUser,TRole>(IServiceCollection, Action<IdentityOptions>) AddIdentity<TUser,TRole>(IServiceCollection, Action<IdentityOptions>)

Adds and configures the identity system for the specified User and Role types.

AddIdentity<TUser,TRole>(IServiceCollection, Action<IdentityOptions>) AddIdentity<TUser,TRole>(IServiceCollection, Action<IdentityOptions>) AddIdentity<TUser,TRole>(IServiceCollection, Action<IdentityOptions>)

Adds and configures the identity system for the specified User and Role types.

AddIdentityCore<TUser>(IServiceCollection) AddIdentityCore<TUser>(IServiceCollection) AddIdentityCore<TUser>(IServiceCollection)

Adds and configures the identity system for the specified User type. Role services are not added by default but can be added with AddRoles<TRole>().

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

Adds and configures the identity system for the specified User type. Role services are not added by default but can be added with AddRoles<TRole>().

ConfigureApplicationCookie(IServiceCollection, Action<CookieAuthenticationOptions>) ConfigureApplicationCookie(IServiceCollection, Action<CookieAuthenticationOptions>) ConfigureApplicationCookie(IServiceCollection, Action<CookieAuthenticationOptions>)

Configures the application cookie.

ConfigureExternalCookie(IServiceCollection, Action<CookieAuthenticationOptions>) ConfigureExternalCookie(IServiceCollection, Action<CookieAuthenticationOptions>) ConfigureExternalCookie(IServiceCollection, Action<CookieAuthenticationOptions>)

Configure the external cookie.

Applies to