IdentityServiceCollectionExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for