IdentityServiceCollectionExtensions Class

Definition

Contains extension methods to IServiceCollection for configuring identity services.

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

Methods

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>)

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

AddIdentityApiEndpoints<TUser>(IServiceCollection)

Adds a set of common identity services to the application to support MapIdentityApi<TUser>(IEndpointRouteBuilder) and configures authentication to support identity bearer tokens and cookies.

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

Adds a set of common identity services to the application to support MapIdentityApi<TUser>(IEndpointRouteBuilder) and configures authentication to support identity bearer tokens and cookies.

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>)

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>)

Configures the application cookie.

ConfigureExternalCookie(IServiceCollection, Action<CookieAuthenticationOptions>)

Configure the external cookie.

Applies to