Class IdentityMapDefinition
Represents the definition of an identity map used to manage and track security identities within Umbraco CMS. This class helps ensure that each security identity is uniquely mapped and efficiently retrieved during authentication and authorization processes.
Inheritance
Namespace: Umbraco.Cms.Core.Security
Assembly: Umbraco.Infrastructure.dll
Syntax
public class IdentityMapDefinition : IMapDefinition
Constructors
View SourceIdentityMapDefinition(ILocalizedTextService, IEntityService, IOptions<GlobalSettings>, IOptions<SecuritySettings>, AppCaches, ITwoFactorLoginService)
Initializes a new instance of the IdentityMapDefinition class.
Declaration
public IdentityMapDefinition(ILocalizedTextService textService, IEntityService entityService, IOptions<GlobalSettings> globalSettings, IOptions<SecuritySettings> securitySettings, AppCaches appCaches, ITwoFactorLoginService twoFactorLoginService)
Parameters
| Type | Name | Description |
|---|---|---|
| ILocalizedTextService | textService | An ILocalizedTextService used for retrieving localized text. |
| IEntityService | entityService | An IEntityService for accessing Umbraco entities. |
| IOptions<GlobalSettings> | globalSettings | The Microsoft.Extensions.Options.IOptions<TOptions> providing global configuration options. |
| IOptions<SecuritySettings> | securitySettings | The Microsoft.Extensions.Options.IOptions<TOptions> providing security configuration options. |
| AppCaches | appCaches | The AppCaches instance for application-level caching. |
| ITwoFactorLoginService | twoFactorLoginService | An ITwoFactorLoginService for managing two-factor authentication. |
Methods
View SourceDefineMaps(IUmbracoMapper)
Configures mapping definitions between core identity interfaces and their corresponding identity user implementations.
Specifically, maps IUser to BackOfficeIdentityUser and IMember to MemberIdentityUser using the provided mapper.
Declaration
public void DefineMaps(IUmbracoMapper mapper)
Parameters
| Type | Name | Description |
|---|---|---|
| IUmbracoMapper | mapper | The IUmbracoMapper instance used to define the mappings. |