Browse Source
Make `IdentitySession` entity extensible.
pull/20771/head
maliming
2 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
4 changed files with
18 additions and
1 deletions
-
modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/ObjectExtending/IdentityModuleExtensionConfiguration.cs
-
modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/ObjectExtending/IdentityModuleExtensionConsts.cs
-
modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/AbpIdentityDomainModule.cs
-
modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentitySession.cs
|
|
|
@ -40,4 +40,13 @@ public class IdentityModuleExtensionConfiguration : ModuleExtensionConfiguration |
|
|
|
configureAction |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
public IdentityModuleExtensionConfiguration ConfigureIdentitySession( |
|
|
|
Action<EntityExtensionConfiguration> configureAction) |
|
|
|
{ |
|
|
|
return this.ConfigureEntity( |
|
|
|
IdentityModuleExtensionConsts.EntityNames.IdentitySession, |
|
|
|
configureAction |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -13,6 +13,8 @@ public static class IdentityModuleExtensionConsts |
|
|
|
public const string ClaimType = "ClaimType"; |
|
|
|
|
|
|
|
public const string OrganizationUnit = "OrganizationUnit"; |
|
|
|
|
|
|
|
public const string IdentitySession = "IdentitySession"; |
|
|
|
} |
|
|
|
|
|
|
|
public static class ConfigurationNames |
|
|
|
|
|
|
|
@ -99,6 +99,12 @@ public class AbpIdentityDomainModule : AbpModule |
|
|
|
IdentityModuleExtensionConsts.EntityNames.OrganizationUnit, |
|
|
|
typeof(OrganizationUnit) |
|
|
|
); |
|
|
|
|
|
|
|
ModuleExtensionConfigurationHelper.ApplyEntityConfigurationToEntity( |
|
|
|
IdentityModuleExtensionConsts.ModuleName, |
|
|
|
IdentityModuleExtensionConsts.EntityNames.IdentitySession, |
|
|
|
typeof(IdentitySession) |
|
|
|
); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -5,7 +5,7 @@ using Volo.Abp.MultiTenancy; |
|
|
|
|
|
|
|
namespace Volo.Abp.Identity; |
|
|
|
|
|
|
|
public class IdentitySession : BasicAggregateRoot<Guid>, IMultiTenant |
|
|
|
public class IdentitySession : AggregateRoot<Guid>, IMultiTenant |
|
|
|
{ |
|
|
|
public virtual string SessionId { get; protected set; } |
|
|
|
|
|
|
|
|