diff --git a/Directory.Packages.props b/Directory.Packages.props
index dace04248..dad8739fe 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -288,6 +288,7 @@
+
@@ -333,6 +334,13 @@
+
+
+
+
+
+
+
diff --git a/aspnet-core/LINGYUN.MicroService.All.slnx b/aspnet-core/LINGYUN.MicroService.All.slnx
index 2402e2726..a03ddbf52 100644
--- a/aspnet-core/LINGYUN.MicroService.All.slnx
+++ b/aspnet-core/LINGYUN.MicroService.All.slnx
@@ -101,6 +101,7 @@
+
@@ -247,9 +248,7 @@
-
-
diff --git a/aspnet-core/LINGYUN.MicroService.Aspire.slnx b/aspnet-core/LINGYUN.MicroService.Aspire.slnx
index 9effcd21b..e485da658 100644
--- a/aspnet-core/LINGYUN.MicroService.Aspire.slnx
+++ b/aspnet-core/LINGYUN.MicroService.Aspire.slnx
@@ -109,6 +109,7 @@
+
@@ -217,9 +218,7 @@
-
-
diff --git a/aspnet-core/LINGYUN.MicroService.SingleProject.slnx b/aspnet-core/LINGYUN.MicroService.SingleProject.slnx
index e3f0217b1..f97111341 100644
--- a/aspnet-core/LINGYUN.MicroService.SingleProject.slnx
+++ b/aspnet-core/LINGYUN.MicroService.SingleProject.slnx
@@ -15,6 +15,7 @@
+
@@ -116,9 +117,6 @@
-
-
-
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.AIService/AIServiceModule.cs b/aspnet-core/aspire/LINGYUN.Abp.MicroService.AIService/AIServiceModule.cs
index 118ea082a..9af8c777a 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.AIService/AIServiceModule.cs
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.AIService/AIServiceModule.cs
@@ -7,7 +7,7 @@ using LINGYUN.Abp.AspNetCore.HttpOverrides;
using LINGYUN.Abp.AspNetCore.Mvc.Wrapper;
using LINGYUN.Abp.AspNetCore.Session;
using LINGYUN.Abp.AuditLogging.Elasticsearch;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Data.DbMigrator;
using LINGYUN.Abp.Dynamic.Definitions;
using LINGYUN.Abp.Emailing.Platform;
@@ -68,7 +68,7 @@ namespace LINGYUN.Abp.MicroService.AIService;
typeof(AbpAspNetCoreMvcWrapperModule),
typeof(AbpAspNetCoreHttpOverridesModule),
typeof(AbpDynamicDefinitionsModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpSwashbuckleModule),
typeof(AbpAutofacModule)
)]
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.AIService/LINGYUN.Abp.MicroService.AIService.csproj b/aspnet-core/aspire/LINGYUN.Abp.MicroService.AIService/LINGYUN.Abp.MicroService.AIService.csproj
index a64a7f6fd..e79b48b23 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.AIService/LINGYUN.Abp.MicroService.AIService.csproj
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.AIService/LINGYUN.Abp.MicroService.AIService.csproj
@@ -53,7 +53,7 @@
-
+
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.AdminService/AdminServiceModule.cs b/aspnet-core/aspire/LINGYUN.Abp.MicroService.AdminService/AdminServiceModule.cs
index c3d213a68..321bf5a85 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.AdminService/AdminServiceModule.cs
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.AdminService/AdminServiceModule.cs
@@ -7,7 +7,7 @@ using LINGYUN.Abp.AuditLogging.Elasticsearch;
using LINGYUN.Abp.BlobManagement.SettingManagement;
using LINGYUN.Abp.CachingManagement;
using LINGYUN.Abp.CachingManagement.StackExchangeRedis;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Data.DbMigrator;
using LINGYUN.Abp.DataProtectionManagement;
using LINGYUN.Abp.Dynamic.Definitions;
@@ -99,7 +99,7 @@ namespace LINGYUN.Abp.MicroService.AdminService;
typeof(AbpAspNetCoreMvcWrapperModule),
typeof(AbpAspNetCoreHttpOverridesModule),
typeof(AbpDynamicDefinitionsModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpSwashbuckleModule),
typeof(AbpAutofacModule)
)]
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.AdminService/LINGYUN.Abp.MicroService.AdminService.csproj b/aspnet-core/aspire/LINGYUN.Abp.MicroService.AdminService/LINGYUN.Abp.MicroService.AdminService.csproj
index 3cfdbcef9..2d3b5cee2 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.AdminService/LINGYUN.Abp.MicroService.AdminService.csproj
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.AdminService/LINGYUN.Abp.MicroService.AdminService.csproj
@@ -54,7 +54,7 @@
-
+
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.AuthServer/LINGYUN.Abp.MicroService.AuthServer.csproj b/aspnet-core/aspire/LINGYUN.Abp.MicroService.AuthServer/LINGYUN.Abp.MicroService.AuthServer.csproj
index f5cad96e9..06eb5dcd5 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.AuthServer/LINGYUN.Abp.MicroService.AuthServer.csproj
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.AuthServer/LINGYUN.Abp.MicroService.AuthServer.csproj
@@ -54,7 +54,7 @@
-
+
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.IdentityService/IdentityServiceModule.cs b/aspnet-core/aspire/LINGYUN.Abp.MicroService.IdentityService/IdentityServiceModule.cs
index 3c46dc6c0..e2b52d9e7 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.IdentityService/IdentityServiceModule.cs
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.IdentityService/IdentityServiceModule.cs
@@ -5,7 +5,7 @@ using LINGYUN.Abp.AspNetCore.Session;
using LINGYUN.Abp.AuditLogging.Elasticsearch;
using LINGYUN.Abp.Authorization.OrganizationUnits;
using LINGYUN.Abp.BlobStoring.BlobManagement;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Dynamic.Definitions;
using LINGYUN.Abp.Emailing.Platform;
using LINGYUN.Abp.EventBus.CAP;
@@ -84,7 +84,7 @@ namespace LINGYUN.Abp.MicroService.IdentityService;
typeof(AbpAspNetCoreMvcWrapperModule),
typeof(AbpDynamicDefinitionsModule),
typeof(AbpExporterMiniSoftwareModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpSwashbuckleModule),
typeof(AbpAutofacModule)
)]
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.IdentityService/LINGYUN.Abp.MicroService.IdentityService.csproj b/aspnet-core/aspire/LINGYUN.Abp.MicroService.IdentityService/LINGYUN.Abp.MicroService.IdentityService.csproj
index b1da81375..01cd005a6 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.IdentityService/LINGYUN.Abp.MicroService.IdentityService.csproj
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.IdentityService/LINGYUN.Abp.MicroService.IdentityService.csproj
@@ -55,7 +55,7 @@
-
+
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.LocalizationService/LINGYUN.Abp.MicroService.LocalizationService.csproj b/aspnet-core/aspire/LINGYUN.Abp.MicroService.LocalizationService/LINGYUN.Abp.MicroService.LocalizationService.csproj
index 7333ea61d..06166c35f 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.LocalizationService/LINGYUN.Abp.MicroService.LocalizationService.csproj
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.LocalizationService/LINGYUN.Abp.MicroService.LocalizationService.csproj
@@ -48,7 +48,7 @@
-
+
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.LocalizationService/LocalizationServiceModule.cs b/aspnet-core/aspire/LINGYUN.Abp.MicroService.LocalizationService/LocalizationServiceModule.cs
index 604e61d49..a9d1028af 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.LocalizationService/LocalizationServiceModule.cs
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.LocalizationService/LocalizationServiceModule.cs
@@ -3,7 +3,7 @@ using LINGYUN.Abp.AspNetCore.Mvc.Wrapper;
using LINGYUN.Abp.AspNetCore.Session;
using LINGYUN.Abp.AuditLogging.Elasticsearch;
using LINGYUN.Abp.Authorization.OrganizationUnits;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Data.DbMigrator;
using LINGYUN.Abp.Dynamic.Definitions;
using LINGYUN.Abp.Emailing.Platform;
@@ -59,7 +59,7 @@ namespace LINGYUN.Abp.MicroService.LocalizationService;
typeof(AbpAspNetCoreMvcWrapperModule),
typeof(AbpAspNetCoreHttpOverridesModule),
typeof(AbpDynamicDefinitionsModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpSwashbuckleModule),
typeof(AbpAutofacModule)
)]
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.MessageService/LINGYUN.Abp.MicroService.MessageService.csproj b/aspnet-core/aspire/LINGYUN.Abp.MicroService.MessageService/LINGYUN.Abp.MicroService.MessageService.csproj
index 0970cf77d..6818d2245 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.MessageService/LINGYUN.Abp.MicroService.MessageService.csproj
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.MessageService/LINGYUN.Abp.MicroService.MessageService.csproj
@@ -51,7 +51,7 @@
-
+
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.MessageService/MessageServiceModule.cs b/aspnet-core/aspire/LINGYUN.Abp.MicroService.MessageService/MessageServiceModule.cs
index 6ef0b8a8d..e0719a33a 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.MessageService/MessageServiceModule.cs
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.MessageService/MessageServiceModule.cs
@@ -5,7 +5,7 @@ using LINGYUN.Abp.AuditLogging.Elasticsearch;
using LINGYUN.Abp.Authorization.OrganizationUnits;
using LINGYUN.Abp.BackgroundTasks.DistributedLocking;
using LINGYUN.Abp.BackgroundTasks.Quartz;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Data.DbMigrator;
using LINGYUN.Abp.Dynamic.Definitions;
using LINGYUN.Abp.Emailing.Platform;
@@ -115,7 +115,7 @@ namespace LINGYUN.Abp.MicroService.MessageService;
typeof(AbpEmailingPlatformModule),
typeof(AbpSmsPlatformModule),
typeof(AbpHttpClientModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpAspNetCoreSessionModule),
typeof(AbpAspNetCoreMvcWrapperModule),
typeof(AbpAspNetCoreHttpOverridesModule),
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.PlatformService/LINGYUN.Abp.MicroService.PlatformService.csproj b/aspnet-core/aspire/LINGYUN.Abp.MicroService.PlatformService/LINGYUN.Abp.MicroService.PlatformService.csproj
index 0e3e39c02..18b6f2ada 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.PlatformService/LINGYUN.Abp.MicroService.PlatformService.csproj
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.PlatformService/LINGYUN.Abp.MicroService.PlatformService.csproj
@@ -56,7 +56,7 @@
-
+
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.PlatformService/PlatformServiceModule.cs b/aspnet-core/aspire/LINGYUN.Abp.MicroService.PlatformService/PlatformServiceModule.cs
index c99cf96f2..b2b06fef4 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.PlatformService/PlatformServiceModule.cs
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.PlatformService/PlatformServiceModule.cs
@@ -10,7 +10,7 @@ using LINGYUN.Abp.BlobManagement.MimeCheck;
using LINGYUN.Abp.BlobManagement.Minio;
using LINGYUN.Abp.BlobManagement.Tencent;
using LINGYUN.Abp.BlobStoring.BlobManagement;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Data.DbMigrator;
using LINGYUN.Abp.Dynamic.Definitions;
using LINGYUN.Abp.EventBus.CAP;
@@ -92,7 +92,7 @@ namespace LINGYUN.Abp.MicroService.PlatformService;
typeof(AbpHttpClientModule),
typeof(AbpMailKitModule),
typeof(AbpAliyunSmsModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpAspNetCoreSessionModule),
typeof(AbpAspNetCoreMvcWrapperModule),
typeof(AbpAspNetCoreHttpOverridesModule),
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.TaskService/LINGYUN.Abp.MicroService.TaskService.csproj b/aspnet-core/aspire/LINGYUN.Abp.MicroService.TaskService/LINGYUN.Abp.MicroService.TaskService.csproj
index 0c6981c31..a3c48e3fb 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.TaskService/LINGYUN.Abp.MicroService.TaskService.csproj
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.TaskService/LINGYUN.Abp.MicroService.TaskService.csproj
@@ -51,7 +51,7 @@
-
+
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.TaskService/TaskServiceModule.cs b/aspnet-core/aspire/LINGYUN.Abp.MicroService.TaskService/TaskServiceModule.cs
index 5d9c9e354..3aa70452e 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.TaskService/TaskServiceModule.cs
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.TaskService/TaskServiceModule.cs
@@ -8,7 +8,7 @@ using LINGYUN.Abp.BackgroundTasks.Jobs;
using LINGYUN.Abp.BackgroundTasks.Notifications;
using LINGYUN.Abp.BackgroundTasks.Quartz;
using LINGYUN.Abp.BlobStoring.BlobManagement;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Data.DbMigrator;
using LINGYUN.Abp.Dynamic.Definitions;
using LINGYUN.Abp.Elasticsearch.Jobs;
@@ -87,7 +87,7 @@ namespace LINGYUN.Abp.MicroService.TaskService;
typeof(AbpAspNetCoreMvcWrapperModule),
typeof(AbpAspNetCoreHttpOverridesModule),
typeof(AbpDynamicDefinitionsModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpCAPEventBusModule),
typeof(AbpAutofacModule)
)]
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.WeChatService/LINGYUN.Abp.MicroService.WeChatService.csproj b/aspnet-core/aspire/LINGYUN.Abp.MicroService.WeChatService/LINGYUN.Abp.MicroService.WeChatService.csproj
index a5f1fdf19..49cac76f9 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.WeChatService/LINGYUN.Abp.MicroService.WeChatService.csproj
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.WeChatService/LINGYUN.Abp.MicroService.WeChatService.csproj
@@ -53,7 +53,7 @@
-
+
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.WeChatService/WeChatServiceModule.cs b/aspnet-core/aspire/LINGYUN.Abp.MicroService.WeChatService/WeChatServiceModule.cs
index a112b0fce..5656f502c 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.WeChatService/WeChatServiceModule.cs
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.WeChatService/WeChatServiceModule.cs
@@ -3,7 +3,7 @@ using LINGYUN.Abp.AspNetCore.Mvc.Wrapper;
using LINGYUN.Abp.AspNetCore.Session;
using LINGYUN.Abp.AuditLogging.Elasticsearch;
using LINGYUN.Abp.Authorization.OrganizationUnits;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Dynamic.Definitions;
using LINGYUN.Abp.EventBus.CAP;
using LINGYUN.Abp.ExceptionHandling.Emailing;
@@ -77,7 +77,7 @@ namespace LINGYUN.Abp.MicroService.WeChatService;
typeof(AbpSwashbuckleModule),
typeof(AbpHttpClientWrapperModule),
typeof(AbpMailKitModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpAspNetCoreSessionModule),
typeof(AbpAspNetCoreMvcWrapperModule),
typeof(AbpAspNetCoreHttpOverridesModule),
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.WebhookService/LINGYUN.Abp.MicroService.WebhookService.csproj b/aspnet-core/aspire/LINGYUN.Abp.MicroService.WebhookService/LINGYUN.Abp.MicroService.WebhookService.csproj
index 3368f468b..1a13862ca 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.WebhookService/LINGYUN.Abp.MicroService.WebhookService.csproj
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.WebhookService/LINGYUN.Abp.MicroService.WebhookService.csproj
@@ -49,7 +49,7 @@
-
+
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.WebhookService/WebhookServiceModule.cs b/aspnet-core/aspire/LINGYUN.Abp.MicroService.WebhookService/WebhookServiceModule.cs
index 24455c5c0..d5b0299e4 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.WebhookService/WebhookServiceModule.cs
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.WebhookService/WebhookServiceModule.cs
@@ -5,7 +5,7 @@ using LINGYUN.Abp.AuditLogging.Elasticsearch;
using LINGYUN.Abp.Authorization.OrganizationUnits;
using LINGYUN.Abp.BackgroundTasks.DistributedLocking;
using LINGYUN.Abp.BackgroundTasks.Quartz;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Dapr.Client.Wrapper;
using LINGYUN.Abp.Dynamic.Definitions;
using LINGYUN.Abp.Emailing.Platform;
@@ -58,7 +58,7 @@ namespace LINGYUN.Abp.MicroService.WebhookService;
typeof(AbpSwashbuckleModule),
typeof(AbpHttpClientWrapperModule),
typeof(AbpDaprClientWrapperModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpEmailingPlatformModule),
typeof(AbpSmsPlatformModule),
typeof(AbpAspNetCoreSessionModule),
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.WorkflowService/LINGYUN.Abp.MicroService.WorkflowService.csproj b/aspnet-core/aspire/LINGYUN.Abp.MicroService.WorkflowService/LINGYUN.Abp.MicroService.WorkflowService.csproj
index 439aaba0d..df2d3adf5 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.WorkflowService/LINGYUN.Abp.MicroService.WorkflowService.csproj
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.WorkflowService/LINGYUN.Abp.MicroService.WorkflowService.csproj
@@ -58,7 +58,7 @@
-
+
diff --git a/aspnet-core/aspire/LINGYUN.Abp.MicroService.WorkflowService/WorkflowServiceModule.cs b/aspnet-core/aspire/LINGYUN.Abp.MicroService.WorkflowService/WorkflowServiceModule.cs
index 762933dd4..0aa6efde2 100644
--- a/aspnet-core/aspire/LINGYUN.Abp.MicroService.WorkflowService/WorkflowServiceModule.cs
+++ b/aspnet-core/aspire/LINGYUN.Abp.MicroService.WorkflowService/WorkflowServiceModule.cs
@@ -6,7 +6,7 @@ using LINGYUN.Abp.Authorization.OrganizationUnits;
using LINGYUN.Abp.BackgroundTasks.DistributedLocking;
using LINGYUN.Abp.BackgroundTasks.Quartz;
using LINGYUN.Abp.BlobStoring.BlobManagement;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Data.DbMigrator;
using LINGYUN.Abp.Dynamic.Definitions;
using LINGYUN.Abp.Elsa;
@@ -82,7 +82,7 @@ namespace LINGYUN.Abp.MicroService.WorkflowService;
typeof(AbpAspNetCoreMvcWrapperModule),
typeof(AbpSmsPlatformModule),
typeof(AbpEmailingPlatformModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpAspNetCoreSessionModule),
typeof(AbpAspNetCoreMvcNewtonsoftModule),
typeof(AbpAspNetCoreHttpOverridesModule),
diff --git a/aspnet-core/framework/security/LINGYUN.Abp.Claims.Mapping/FodyWeavers.xml b/aspnet-core/framework/common/LINGYUN.Abp.AspNetCore.Authentication/FodyWeavers.xml
similarity index 100%
rename from aspnet-core/framework/security/LINGYUN.Abp.Claims.Mapping/FodyWeavers.xml
rename to aspnet-core/framework/common/LINGYUN.Abp.AspNetCore.Authentication/FodyWeavers.xml
diff --git a/aspnet-core/framework/security/LINGYUN.Abp.Claims.Mapping/FodyWeavers.xsd b/aspnet-core/framework/common/LINGYUN.Abp.AspNetCore.Authentication/FodyWeavers.xsd
similarity index 100%
rename from aspnet-core/framework/security/LINGYUN.Abp.Claims.Mapping/FodyWeavers.xsd
rename to aspnet-core/framework/common/LINGYUN.Abp.AspNetCore.Authentication/FodyWeavers.xsd
diff --git a/aspnet-core/framework/security/LINGYUN.Abp.Claims.Mapping/LINGYUN.Abp.Claims.Mapping.csproj b/aspnet-core/framework/common/LINGYUN.Abp.AspNetCore.Authentication/LINGYUN.Abp.AspNetCore.Authentication.csproj
similarity index 50%
rename from aspnet-core/framework/security/LINGYUN.Abp.Claims.Mapping/LINGYUN.Abp.Claims.Mapping.csproj
rename to aspnet-core/framework/common/LINGYUN.Abp.AspNetCore.Authentication/LINGYUN.Abp.AspNetCore.Authentication.csproj
index 8e90a9b9f..e18c07b7d 100644
--- a/aspnet-core/framework/security/LINGYUN.Abp.Claims.Mapping/LINGYUN.Abp.Claims.Mapping.csproj
+++ b/aspnet-core/framework/common/LINGYUN.Abp.AspNetCore.Authentication/LINGYUN.Abp.AspNetCore.Authentication.csproj
@@ -4,9 +4,9 @@
- netstandard2.0;netstandard2.1;net8.0;net9.0;net10.0
- LINGYUN.Abp.Claims.Mapping
- LINGYUN.Abp.Claims.Mapping
+ net10.0
+ LINGYUN.Abp.AspNetCore.Authentication
+ LINGYUN.Abp.AspNetCore.Authentication
false
false
false
@@ -14,9 +14,14 @@
+
-
+
+
+
+
+
-
+
\ No newline at end of file
diff --git a/aspnet-core/framework/common/LINGYUN.Abp.AspNetCore.Authentication/LINGYUN/Abp/AspNetCore/Authentication/AbpAspNetCoreAuthenticationModule.cs b/aspnet-core/framework/common/LINGYUN.Abp.AspNetCore.Authentication/LINGYUN/Abp/AspNetCore/Authentication/AbpAspNetCoreAuthenticationModule.cs
new file mode 100644
index 000000000..ea4d55a61
--- /dev/null
+++ b/aspnet-core/framework/common/LINGYUN.Abp.AspNetCore.Authentication/LINGYUN/Abp/AspNetCore/Authentication/AbpAspNetCoreAuthenticationModule.cs
@@ -0,0 +1,36 @@
+using Duende.IdentityModel;
+using Microsoft.AspNetCore.Authentication;
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.DependencyInjection.Extensions;
+using System;
+using Volo.Abp.AspNetCore;
+using Volo.Abp.AspNetCore.Security.Claims;
+using Volo.Abp.Modularity;
+using Volo.Abp.Security.Claims;
+
+namespace LINGYUN.Abp.AspNetCore.Authentication;
+
+[DependsOn(typeof(AbpAspNetCoreModule))]
+public class AbpAspNetCoreAuthenticationModule : AbpModule
+{
+ public override void ConfigureServices(ServiceConfigurationContext context)
+ {
+ Configure(options =>
+ {
+ options.Maps[JwtClaimTypes.Subject] = () => AbpClaimTypes.UserId;
+ options.Maps[JwtClaimTypes.Role] = () => AbpClaimTypes.Role;
+ options.Maps[JwtClaimTypes.Email] = () => AbpClaimTypes.Email;
+ options.Maps[JwtClaimTypes.EmailVerified] = () => AbpClaimTypes.EmailVerified;
+ options.Maps[JwtClaimTypes.PhoneNumber] = () => AbpClaimTypes.PhoneNumber;
+ options.Maps[JwtClaimTypes.PhoneNumberVerified] = () => AbpClaimTypes.PhoneNumberVerified;
+ options.Maps[JwtClaimTypes.Name] = () => AbpClaimTypes.Name;
+ options.Maps[JwtClaimTypes.FamilyName] = () => AbpClaimTypes.SurName;
+ options.Maps[JwtClaimTypes.GivenName] = () => AbpClaimTypes.Name;
+ options.Maps[JwtClaimTypes.PreferredUserName] = () => AbpClaimTypes.UserName;
+ options.Maps["unique_name"] = () => AbpClaimTypes.UserName;
+ });
+
+ context.Services.Replace(
+ ServiceDescriptor.Transient());
+ }
+}
diff --git a/aspnet-core/framework/common/LINGYUN.Abp.AspNetCore.Authentication/LINGYUN/Abp/AspNetCore/Authentication/AbpClaimsMapClaimsTransformation.cs b/aspnet-core/framework/common/LINGYUN.Abp.AspNetCore.Authentication/LINGYUN/Abp/AspNetCore/Authentication/AbpClaimsMapClaimsTransformation.cs
new file mode 100644
index 000000000..761dd74e9
--- /dev/null
+++ b/aspnet-core/framework/common/LINGYUN.Abp.AspNetCore.Authentication/LINGYUN/Abp/AspNetCore/Authentication/AbpClaimsMapClaimsTransformation.cs
@@ -0,0 +1,86 @@
+using Microsoft.Extensions.Options;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Security.Claims;
+using System.Threading.Tasks;
+using Volo.Abp.AspNetCore.Security.Claims;
+
+namespace LINGYUN.Abp.AspNetCore.Authentication;
+
+public class AbpClaimsMapClaimsTransformation : AbpClaimsTransformation
+{
+ public AbpClaimsMapClaimsTransformation(IOptions abpClaimsMapOptions)
+ : base(abpClaimsMapOptions)
+ {
+ }
+
+ public override Task TransformAsync(ClaimsPrincipal principal)
+ {
+ var maps = AbpClaimsMapOptions.Value.Maps;
+ if (maps.Count == 0)
+ {
+ return Task.FromResult(principal);
+ }
+
+ var mappedClaims = new List();
+
+ foreach (var claim in principal.Claims)
+ {
+ if (!maps.TryGetValue(claim.Type, out var mapClaimType))
+ {
+ continue;
+ }
+
+ var mappedClaimType = mapClaimType();
+ if (string.IsNullOrWhiteSpace(mappedClaimType))
+ {
+ continue;
+ }
+
+ if (string.Equals(mappedClaimType, claim.Type, StringComparison.Ordinal))
+ {
+ continue;
+ }
+
+ if (principal.HasClaim(mappedClaimType, claim.Value))
+ {
+ continue;
+ }
+
+ mappedClaims.Add(new Claim(
+ mappedClaimType,
+ claim.Value,
+ claim.ValueType,
+ claim.Issuer,
+ claim.OriginalIssuer));
+ }
+
+ if (mappedClaims.Count == 0)
+ {
+ return Task.FromResult(principal);
+ }
+
+ var identity = principal.Identities.FirstOrDefault(x => x.IsAuthenticated) ?? principal.Identities.FirstOrDefault();
+ if (identity is ClaimsIdentity claimsIdentity)
+ {
+ try
+ {
+ foreach (var mappedClaim in mappedClaims)
+ {
+ claimsIdentity.AddClaim(mappedClaim);
+ }
+
+ return Task.FromResult(principal);
+ }
+ catch (InvalidOperationException)
+ {
+ // ignore
+ }
+ }
+
+ principal.AddIdentity(new ClaimsIdentity(mappedClaims));
+
+ return Task.FromResult(principal);
+ }
+}
diff --git a/aspnet-core/framework/security/LINGYUN.Abp.Claims.Mapping/Microsoft/IdentityModel/Tokens/TokenWildcardIssuerValidator.cs b/aspnet-core/framework/common/LINGYUN.Abp.AspNetCore.Authentication/Microsoft/IdentityModel/Tokens/TokenWildcardIssuerValidator.cs
similarity index 99%
rename from aspnet-core/framework/security/LINGYUN.Abp.Claims.Mapping/Microsoft/IdentityModel/Tokens/TokenWildcardIssuerValidator.cs
rename to aspnet-core/framework/common/LINGYUN.Abp.AspNetCore.Authentication/Microsoft/IdentityModel/Tokens/TokenWildcardIssuerValidator.cs
index ef67f0284..3da8b86e1 100644
--- a/aspnet-core/framework/security/LINGYUN.Abp.Claims.Mapping/Microsoft/IdentityModel/Tokens/TokenWildcardIssuerValidator.cs
+++ b/aspnet-core/framework/common/LINGYUN.Abp.AspNetCore.Authentication/Microsoft/IdentityModel/Tokens/TokenWildcardIssuerValidator.cs
@@ -128,4 +128,3 @@ public static class TokenWildcardIssuerValidator
return first ? Utility.Empty : sb.ToString();
}
}
-
diff --git a/aspnet-core/framework/security/LINGYUN.Abp.Claims.Mapping/LINGYUN/Abp/Claims/Mapping/AbpClaimsMappingModule.cs b/aspnet-core/framework/security/LINGYUN.Abp.Claims.Mapping/LINGYUN/Abp/Claims/Mapping/AbpClaimsMappingModule.cs
deleted file mode 100644
index 30e8235b0..000000000
--- a/aspnet-core/framework/security/LINGYUN.Abp.Claims.Mapping/LINGYUN/Abp/Claims/Mapping/AbpClaimsMappingModule.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using Volo.Abp.Modularity;
-using Volo.Abp.Security;
-
-namespace LINGYUN.Abp.Claims.Mapping;
-
-[DependsOn(typeof(AbpSecurityModule))]
-public class AbpClaimsMappingModule : AbpModule
-{
- public override void PreConfigureServices(ServiceConfigurationContext context)
- {
- JwtClaimTypesMapping.MapAbpClaimTypes();
- }
-}
diff --git a/aspnet-core/framework/security/LINGYUN.Abp.Claims.Mapping/LINGYUN/Abp/Claims/Mapping/JwtClaimTypesMapping.cs b/aspnet-core/framework/security/LINGYUN.Abp.Claims.Mapping/LINGYUN/Abp/Claims/Mapping/JwtClaimTypesMapping.cs
deleted file mode 100644
index e023bb414..000000000
--- a/aspnet-core/framework/security/LINGYUN.Abp.Claims.Mapping/LINGYUN/Abp/Claims/Mapping/JwtClaimTypesMapping.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using IdentityModel;
-using Volo.Abp.Security.Claims;
-
-namespace LINGYUN.Abp.Claims.Mapping;
-
-public static class JwtClaimTypesMapping
-{
- public static void MapAbpClaimTypes()
- {
- AbpClaimTypes.UserId = JwtClaimTypes.Subject;
- AbpClaimTypes.Role = JwtClaimTypes.Role;
- AbpClaimTypes.UserName = JwtClaimTypes.PreferredUserName;
- AbpClaimTypes.Name = JwtClaimTypes.GivenName;
- AbpClaimTypes.SurName = JwtClaimTypes.FamilyName;
- AbpClaimTypes.PhoneNumber = JwtClaimTypes.PhoneNumber;
- AbpClaimTypes.PhoneNumberVerified = JwtClaimTypes.PhoneNumberVerified;
- AbpClaimTypes.Email = JwtClaimTypes.Email;
- AbpClaimTypes.EmailVerified = JwtClaimTypes.EmailVerified;
- AbpClaimTypes.ClientId = JwtClaimTypes.ClientId;
- }
-}
diff --git a/aspnet-core/framework/security/LINGYUN.Abp.Claims.Mapping/README.md b/aspnet-core/framework/security/LINGYUN.Abp.Claims.Mapping/README.md
deleted file mode 100644
index 85cd31dfc..000000000
--- a/aspnet-core/framework/security/LINGYUN.Abp.Claims.Mapping/README.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# LINGYUN.Abp.Claims.Mapping
-
-引入此模块解决*IdentityServer*身份令牌映射,需要配合 *MapInboundClaims* 使用
-
-## 注意
-
-身份认证服务器使用 *OpenIddict* 时无需处理
-
-## 配置使用
-
-
-```csharp
-[DependsOn(typeof(AbpClaimsMappingModule))]
-public class YouProjectModule : AbpModule
-{
- // other
-}
-```
diff --git a/aspnet-core/framework/security/LINGYUN.Abp.Security/FodyWeavers.xml b/aspnet-core/framework/security/LINGYUN.Abp.Security/FodyWeavers.xml
deleted file mode 100644
index 00e1d9a1c..000000000
--- a/aspnet-core/framework/security/LINGYUN.Abp.Security/FodyWeavers.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/aspnet-core/framework/security/LINGYUN.Abp.Security/FodyWeavers.xsd b/aspnet-core/framework/security/LINGYUN.Abp.Security/FodyWeavers.xsd
deleted file mode 100644
index 3f3946e28..000000000
--- a/aspnet-core/framework/security/LINGYUN.Abp.Security/FodyWeavers.xsd
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.
-
-
-
-
- A comma-separated list of error codes that can be safely ignored in assembly verification.
-
-
-
-
- 'false' to turn off automatic generation of the XML Schema file.
-
-
-
-
-
\ No newline at end of file
diff --git a/aspnet-core/framework/security/LINGYUN.Abp.Security/LINGYUN.Abp.Security.csproj b/aspnet-core/framework/security/LINGYUN.Abp.Security/LINGYUN.Abp.Security.csproj
deleted file mode 100644
index d236f04e7..000000000
--- a/aspnet-core/framework/security/LINGYUN.Abp.Security/LINGYUN.Abp.Security.csproj
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
- netstandard2.0;netstandard2.1;net8.0;net9.0;net10.0
- LINGYUN.Abp.Security
- LINGYUN.Abp.Security
- false
- false
- false
-
-
-
-
-
-
-
-
-
diff --git a/aspnet-core/framework/security/LINGYUN.Abp.Security/README.EN.md b/aspnet-core/framework/security/LINGYUN.Abp.Security/README.EN.md
deleted file mode 100644
index ea633b84b..000000000
--- a/aspnet-core/framework/security/LINGYUN.Abp.Security/README.EN.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# LINGYUN.Abp.Security
-
-## Module Description
-
-Extends the Abp Security module, providing additional security features.
-
-### Base Modules
-
-* Volo.Abp.Security
-
-### Features
-
-* Provides JWT Claims type mapping functionality
-* Extends standard JWT Claims type definitions
-
-### Configuration
-
-No special configuration items
-
-### How to Use
-
-1. Add `AbpSecurityModule` dependency
-
-```csharp
-[DependsOn(typeof(AbpSecurityModule))]
-public class YouProjectModule : AbpModule
-{
-}
-```
-
-2. Use JWT Claims mapping
-
-```csharp
-// JWT Claims type mapping is done automatically, no manual configuration needed
-// If you need custom mapping, you can configure it in the module's ConfigureServices method
-```
-
-[Back to TOC](../../../README.md)
diff --git a/aspnet-core/framework/security/LINGYUN.Abp.Security/README.md b/aspnet-core/framework/security/LINGYUN.Abp.Security/README.md
deleted file mode 100644
index 03110d2bb..000000000
--- a/aspnet-core/framework/security/LINGYUN.Abp.Security/README.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# LINGYUN.Abp.Security
-
-## 模块说明
-
-扩展 Abp Security 模块,提供额外的安全功能。
-
-### 基础模块
-
-* Volo.Abp.Security
-
-### 功能定义
-
-* 提供 JWT Claims 类型映射功能
-* 扩展了标准的 JWT Claims 类型定义
-
-### 配置定义
-
-无特殊配置项
-
-### 如何使用
-
-1. 添加 `AbpSecurityModule` 依赖
-
-```csharp
-[DependsOn(typeof(AbpSecurityModule))]
-public class YouProjectModule : AbpModule
-{
-}
-```
-
-2. 使用 JWT Claims 映射
-
-```csharp
-// JWT Claims 类型映射会自动完成,无需手动配置
-// 如果需要自定义映射,可以在模块的 ConfigureServices 方法中进行配置
-```
-
-[返回目录](../../../README.md)
diff --git a/aspnet-core/framework/security/LINGYUN.Abp.Security/Volo/Abp/Security/Claims/JwtClaimTypesMapping.cs b/aspnet-core/framework/security/LINGYUN.Abp.Security/Volo/Abp/Security/Claims/JwtClaimTypesMapping.cs
deleted file mode 100644
index 5296e1f4f..000000000
--- a/aspnet-core/framework/security/LINGYUN.Abp.Security/Volo/Abp/Security/Claims/JwtClaimTypesMapping.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-using IdentityModel;
-
-namespace Volo.Abp.Security.Claims;
-
-public static class JwtClaimTypesMapping
-{
- public static void MapAbpClaimTypes()
- {
- AbpClaimTypes.UserId = JwtClaimTypes.Subject;
- AbpClaimTypes.Role = JwtClaimTypes.Role;
- AbpClaimTypes.UserName = JwtClaimTypes.PreferredUserName;
- AbpClaimTypes.Name = JwtClaimTypes.GivenName;
- AbpClaimTypes.SurName = JwtClaimTypes.FamilyName;
- AbpClaimTypes.PhoneNumber = JwtClaimTypes.PhoneNumber;
- AbpClaimTypes.PhoneNumberVerified = JwtClaimTypes.PhoneNumberVerified;
- AbpClaimTypes.Email = JwtClaimTypes.Email;
- AbpClaimTypes.EmailVerified = JwtClaimTypes.EmailVerified;
- AbpClaimTypes.ClientId = JwtClaimTypes.ClientId;
- }
-}
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.AIService/AIServiceModule.cs b/aspnet-core/services/LINGYUN.Abp.MicroService.AIService/AIServiceModule.cs
index 0e3a4980d..0dff49142 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.AIService/AIServiceModule.cs
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.AIService/AIServiceModule.cs
@@ -7,7 +7,7 @@ using LINGYUN.Abp.AspNetCore.HttpOverrides;
using LINGYUN.Abp.AspNetCore.Mvc.Wrapper;
using LINGYUN.Abp.AspNetCore.Session;
using LINGYUN.Abp.AuditLogging.Elasticsearch;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Data.DbMigrator;
using LINGYUN.Abp.Dynamic.Definitions;
using LINGYUN.Abp.Emailing.Platform;
@@ -64,7 +64,7 @@ namespace LINGYUN.Abp.MicroService.AIService;
typeof(AbpAspNetCoreMvcWrapperModule),
typeof(AbpAspNetCoreHttpOverridesModule),
typeof(AbpDynamicDefinitionsModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpSwashbuckleModule),
typeof(AbpAutofacModule)
)]
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.AIService/LINGYUN.Abp.MicroService.AIService.csproj b/aspnet-core/services/LINGYUN.Abp.MicroService.AIService/LINGYUN.Abp.MicroService.AIService.csproj
index ec928f2b5..ea25dd999 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.AIService/LINGYUN.Abp.MicroService.AIService.csproj
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.AIService/LINGYUN.Abp.MicroService.AIService.csproj
@@ -55,7 +55,7 @@
-
+
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.AdminService/AdminServiceModule.cs b/aspnet-core/services/LINGYUN.Abp.MicroService.AdminService/AdminServiceModule.cs
index 42d697e79..8e7542e33 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.AdminService/AdminServiceModule.cs
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.AdminService/AdminServiceModule.cs
@@ -7,7 +7,7 @@ using LINGYUN.Abp.AuditLogging.Elasticsearch;
using LINGYUN.Abp.BlobManagement.SettingManagement;
using LINGYUN.Abp.CachingManagement;
using LINGYUN.Abp.CachingManagement.StackExchangeRedis;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Data.DbMigrator;
using LINGYUN.Abp.DataProtectionManagement;
using LINGYUN.Abp.Dynamic.Definitions;
@@ -124,7 +124,7 @@ namespace LINGYUN.Abp.MicroService.AdminService;
typeof(AbpAspNetCoreMvcWrapperModule),
typeof(AbpAspNetCoreHttpOverridesModule),
typeof(AbpDynamicDefinitionsModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpSwashbuckleModule),
typeof(AbpAutofacModule)
)]
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.AdminService/LINGYUN.Abp.MicroService.AdminService.csproj b/aspnet-core/services/LINGYUN.Abp.MicroService.AdminService/LINGYUN.Abp.MicroService.AdminService.csproj
index 10f96b04e..373ee0543 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.AdminService/LINGYUN.Abp.MicroService.AdminService.csproj
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.AdminService/LINGYUN.Abp.MicroService.AdminService.csproj
@@ -64,7 +64,7 @@
-
+
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.AuthServer/LINGYUN.Abp.MicroService.AuthServer.csproj b/aspnet-core/services/LINGYUN.Abp.MicroService.AuthServer/LINGYUN.Abp.MicroService.AuthServer.csproj
index 4e99febd0..4b9972f90 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.AuthServer/LINGYUN.Abp.MicroService.AuthServer.csproj
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.AuthServer/LINGYUN.Abp.MicroService.AuthServer.csproj
@@ -57,7 +57,7 @@
-
+
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.IdentityService/IdentityServiceModule.cs b/aspnet-core/services/LINGYUN.Abp.MicroService.IdentityService/IdentityServiceModule.cs
index 28cd71e28..c400e7ed9 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.IdentityService/IdentityServiceModule.cs
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.IdentityService/IdentityServiceModule.cs
@@ -5,7 +5,7 @@ using LINGYUN.Abp.AspNetCore.Session;
using LINGYUN.Abp.AuditLogging.Elasticsearch;
using LINGYUN.Abp.Authorization.OrganizationUnits;
using LINGYUN.Abp.BlobStoring.BlobManagement;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Dynamic.Definitions;
using LINGYUN.Abp.Emailing.Platform;
using LINGYUN.Abp.EntityFrameworkCore.MySQL;
@@ -87,7 +87,7 @@ namespace LINGYUN.Abp.MicroService.IdentityService;
typeof(AbpTelemetryOpenTelemetryModule),
typeof(AbpTelemetrySkyWalkingModule),
typeof(AbpExporterMiniSoftwareModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpSwashbuckleModule),
typeof(AbpAutofacModule)
)]
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.IdentityService/LINGYUN.Abp.MicroService.IdentityService.csproj b/aspnet-core/services/LINGYUN.Abp.MicroService.IdentityService/LINGYUN.Abp.MicroService.IdentityService.csproj
index 51627045c..9f67ec9d8 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.IdentityService/LINGYUN.Abp.MicroService.IdentityService.csproj
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.IdentityService/LINGYUN.Abp.MicroService.IdentityService.csproj
@@ -59,7 +59,7 @@
-
+
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.LocalizationService/LINGYUN.Abp.MicroService.LocalizationService.csproj b/aspnet-core/services/LINGYUN.Abp.MicroService.LocalizationService/LINGYUN.Abp.MicroService.LocalizationService.csproj
index 056712985..872de4451 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.LocalizationService/LINGYUN.Abp.MicroService.LocalizationService.csproj
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.LocalizationService/LINGYUN.Abp.MicroService.LocalizationService.csproj
@@ -52,7 +52,7 @@
-
+
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.LocalizationService/LocalizationServiceModule.cs b/aspnet-core/services/LINGYUN.Abp.MicroService.LocalizationService/LocalizationServiceModule.cs
index 771f5f04b..b5110726c 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.LocalizationService/LocalizationServiceModule.cs
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.LocalizationService/LocalizationServiceModule.cs
@@ -3,7 +3,7 @@ using LINGYUN.Abp.AspNetCore.Mvc.Wrapper;
using LINGYUN.Abp.AspNetCore.Session;
using LINGYUN.Abp.AuditLogging.Elasticsearch;
using LINGYUN.Abp.Authorization.OrganizationUnits;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Data.DbMigrator;
using LINGYUN.Abp.Dynamic.Definitions;
using LINGYUN.Abp.Emailing.Platform;
@@ -67,7 +67,7 @@ namespace LINGYUN.Abp.MicroService.LocalizationService;
typeof(AbpAspNetCoreMvcWrapperModule),
typeof(AbpAspNetCoreHttpOverridesModule),
typeof(AbpDynamicDefinitionsModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpSwashbuckleModule),
typeof(AbpAutofacModule)
)]
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.MessageService/LINGYUN.Abp.MicroService.MessageService.csproj b/aspnet-core/services/LINGYUN.Abp.MicroService.MessageService/LINGYUN.Abp.MicroService.MessageService.csproj
index a32a7df70..0f1ee88a0 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.MessageService/LINGYUN.Abp.MicroService.MessageService.csproj
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.MessageService/LINGYUN.Abp.MicroService.MessageService.csproj
@@ -59,7 +59,7 @@
-
+
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.MessageService/MessageServiceModule.cs b/aspnet-core/services/LINGYUN.Abp.MicroService.MessageService/MessageServiceModule.cs
index 4ad43640a..a4660e5c7 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.MessageService/MessageServiceModule.cs
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.MessageService/MessageServiceModule.cs
@@ -5,7 +5,7 @@ using LINGYUN.Abp.AuditLogging.Elasticsearch;
using LINGYUN.Abp.Authorization.OrganizationUnits;
using LINGYUN.Abp.BackgroundTasks.DistributedLocking;
using LINGYUN.Abp.BackgroundTasks.Quartz;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Data.DbMigrator;
using LINGYUN.Abp.Dynamic.Definitions;
using LINGYUN.Abp.Emailing.Platform;
@@ -120,7 +120,7 @@ namespace LINGYUN.Abp.MicroService.MessageService;
typeof(AbpEmailingPlatformModule),
typeof(AbpSmsPlatformModule),
typeof(AbpHttpClientModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpTelemetryOpenTelemetryModule),
typeof(AbpTelemetrySkyWalkingModule),
typeof(AbpAspNetCoreSessionModule),
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.PlatformService/LINGYUN.Abp.MicroService.PlatformService.csproj b/aspnet-core/services/LINGYUN.Abp.MicroService.PlatformService/LINGYUN.Abp.MicroService.PlatformService.csproj
index f3a94111f..af50d512c 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.PlatformService/LINGYUN.Abp.MicroService.PlatformService.csproj
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.PlatformService/LINGYUN.Abp.MicroService.PlatformService.csproj
@@ -60,7 +60,7 @@
-
+
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.PlatformService/PlatformServiceModule.cs b/aspnet-core/services/LINGYUN.Abp.MicroService.PlatformService/PlatformServiceModule.cs
index 5be389707..2b66cc608 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.PlatformService/PlatformServiceModule.cs
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.PlatformService/PlatformServiceModule.cs
@@ -11,7 +11,7 @@ using LINGYUN.Abp.BlobManagement.Minio;
using LINGYUN.Abp.BlobManagement.SettingManagement;
using LINGYUN.Abp.BlobManagement.Tencent;
using LINGYUN.Abp.BlobStoring.BlobManagement;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Data.DbMigrator;
using LINGYUN.Abp.Dynamic.Definitions;
using LINGYUN.Abp.EventBus.CAP;
@@ -109,7 +109,7 @@ namespace LINGYUN.Abp.MicroService.PlatformService;
typeof(AbpAliyunSmsModule),
typeof(AbpAspNetCoreSessionModule),
typeof(AbpAspNetCoreMvcWrapperModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpAspNetCoreHttpOverridesModule),
typeof(AbpDynamicDefinitionsModule),
typeof(AbpSwashbuckleModule),
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.TaskService/LINGYUN.Abp.MicroService.TaskService.csproj b/aspnet-core/services/LINGYUN.Abp.MicroService.TaskService/LINGYUN.Abp.MicroService.TaskService.csproj
index 83e9f4ef1..cb824a8ad 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.TaskService/LINGYUN.Abp.MicroService.TaskService.csproj
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.TaskService/LINGYUN.Abp.MicroService.TaskService.csproj
@@ -60,7 +60,7 @@
-
+
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.TaskService/TaskServiceModule.cs b/aspnet-core/services/LINGYUN.Abp.MicroService.TaskService/TaskServiceModule.cs
index 038eac182..b5d7ba77a 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.TaskService/TaskServiceModule.cs
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.TaskService/TaskServiceModule.cs
@@ -8,7 +8,7 @@ using LINGYUN.Abp.BackgroundTasks.Jobs;
using LINGYUN.Abp.BackgroundTasks.Notifications;
using LINGYUN.Abp.BackgroundTasks.Quartz;
using LINGYUN.Abp.BlobManagement;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Data.DbMigrator;
using LINGYUN.Abp.Dynamic.Definitions;
using LINGYUN.Abp.Elasticsearch.Jobs;
@@ -94,7 +94,7 @@ namespace LINGYUN.Abp.MicroService.TaskService;
typeof(AbpDynamicDefinitionsModule),
typeof(AbpTelemetryOpenTelemetryModule),
typeof(AbpTelemetrySkyWalkingModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpCAPEventBusModule),
typeof(AbpAutofacModule)
)]
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.WeChatService/LINGYUN.Abp.MicroService.WeChatService.csproj b/aspnet-core/services/LINGYUN.Abp.MicroService.WeChatService/LINGYUN.Abp.MicroService.WeChatService.csproj
index 0853c4d1f..70e4983e9 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.WeChatService/LINGYUN.Abp.MicroService.WeChatService.csproj
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.WeChatService/LINGYUN.Abp.MicroService.WeChatService.csproj
@@ -55,7 +55,7 @@
-
+
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.WeChatService/WeChatServiceModule.cs b/aspnet-core/services/LINGYUN.Abp.MicroService.WeChatService/WeChatServiceModule.cs
index 079179e68..69259127f 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.WeChatService/WeChatServiceModule.cs
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.WeChatService/WeChatServiceModule.cs
@@ -3,7 +3,7 @@ using LINGYUN.Abp.AspNetCore.Mvc.Wrapper;
using LINGYUN.Abp.AspNetCore.Session;
using LINGYUN.Abp.AuditLogging.Elasticsearch;
using LINGYUN.Abp.Authorization.OrganizationUnits;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Dynamic.Definitions;
using LINGYUN.Abp.EntityFrameworkCore.MySQL;
using LINGYUN.Abp.EventBus.CAP;
@@ -79,7 +79,7 @@ namespace LINGYUN.Abp.MicroService.WeChatService;
typeof(AbpSwashbuckleModule),
typeof(AbpHttpClientWrapperModule),
typeof(AbpMailKitModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpTelemetryOpenTelemetryModule),
typeof(AbpTelemetrySkyWalkingModule),
typeof(AbpAspNetCoreSessionModule),
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.WebhookService/LINGYUN.Abp.MicroService.WebhookService.csproj b/aspnet-core/services/LINGYUN.Abp.MicroService.WebhookService/LINGYUN.Abp.MicroService.WebhookService.csproj
index 42e49894c..94ac87881 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.WebhookService/LINGYUN.Abp.MicroService.WebhookService.csproj
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.WebhookService/LINGYUN.Abp.MicroService.WebhookService.csproj
@@ -54,7 +54,7 @@
-
+
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.WebhookService/WebhookServiceModule.cs b/aspnet-core/services/LINGYUN.Abp.MicroService.WebhookService/WebhookServiceModule.cs
index 2e18783e4..d6751102c 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.WebhookService/WebhookServiceModule.cs
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.WebhookService/WebhookServiceModule.cs
@@ -5,7 +5,7 @@ using LINGYUN.Abp.AuditLogging.Elasticsearch;
using LINGYUN.Abp.Authorization.OrganizationUnits;
using LINGYUN.Abp.BackgroundTasks.DistributedLocking;
using LINGYUN.Abp.BackgroundTasks.Quartz;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Dapr.Client.Wrapper;
using LINGYUN.Abp.Dynamic.Definitions;
using LINGYUN.Abp.Emailing.Platform;
@@ -79,7 +79,7 @@ namespace LINGYUN.Abp.MicroService.WebhookService;
typeof(AbpSwashbuckleModule),
typeof(AbpHttpClientWrapperModule),
typeof(AbpDaprClientWrapperModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpEmailingPlatformModule),
typeof(AbpSmsPlatformModule),
typeof(AbpTelemetryOpenTelemetryModule),
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.WorkflowService/LINGYUN.Abp.MicroService.WorkflowService.csproj b/aspnet-core/services/LINGYUN.Abp.MicroService.WorkflowService/LINGYUN.Abp.MicroService.WorkflowService.csproj
index 67ab07e6f..91f4006ae 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.WorkflowService/LINGYUN.Abp.MicroService.WorkflowService.csproj
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.WorkflowService/LINGYUN.Abp.MicroService.WorkflowService.csproj
@@ -62,7 +62,7 @@
-
+
diff --git a/aspnet-core/services/LINGYUN.Abp.MicroService.WorkflowService/WorkflowServiceModule.cs b/aspnet-core/services/LINGYUN.Abp.MicroService.WorkflowService/WorkflowServiceModule.cs
index 9beae1966..1c4294ac4 100644
--- a/aspnet-core/services/LINGYUN.Abp.MicroService.WorkflowService/WorkflowServiceModule.cs
+++ b/aspnet-core/services/LINGYUN.Abp.MicroService.WorkflowService/WorkflowServiceModule.cs
@@ -6,7 +6,7 @@ using LINGYUN.Abp.Authorization.OrganizationUnits;
using LINGYUN.Abp.BackgroundTasks.DistributedLocking;
using LINGYUN.Abp.BackgroundTasks.Quartz;
using LINGYUN.Abp.BlobStoring.BlobManagement;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Data.DbMigrator;
using LINGYUN.Abp.Dynamic.Definitions;
using LINGYUN.Abp.Elsa;
@@ -83,7 +83,7 @@ namespace LINGYUN.Abp.MicroService.WorkflowService;
typeof(AbpHttpClientWrapperModule),
typeof(AbpAspNetCoreMvcWrapperModule),
typeof(AbpMailKitModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpTelemetryOpenTelemetryModule),
typeof(AbpTelemetrySkyWalkingModule),
typeof(AbpAspNetCoreSessionModule),
diff --git a/aspnet-core/services/LY.MicroService.Applications.Single/GlobalUsings.cs b/aspnet-core/services/LY.MicroService.Applications.Single/GlobalUsings.cs
index 04d3bbcf9..1d4450c09 100644
--- a/aspnet-core/services/LY.MicroService.Applications.Single/GlobalUsings.cs
+++ b/aspnet-core/services/LY.MicroService.Applications.Single/GlobalUsings.cs
@@ -41,7 +41,7 @@ global using LINGYUN.Abp.BlobManagement.Tencent;
global using LINGYUN.Abp.BlobStoring.BlobManagement;
global using LINGYUN.Abp.CachingManagement;
global using LINGYUN.Abp.CachingManagement.StackExchangeRedis;
-global using LINGYUN.Abp.Claims.Mapping;
+global using LINGYUN.Abp.AspNetCore.Authentication;
global using LINGYUN.Abp.Dapr.Client;
global using LINGYUN.Abp.Data.DbMigrator;
global using LINGYUN.Abp.DataProtectionManagement;
diff --git a/aspnet-core/services/LY.MicroService.Applications.Single/LY.MicroService.Applications.Single.csproj b/aspnet-core/services/LY.MicroService.Applications.Single/LY.MicroService.Applications.Single.csproj
index fcb772caf..563fd1b84 100644
--- a/aspnet-core/services/LY.MicroService.Applications.Single/LY.MicroService.Applications.Single.csproj
+++ b/aspnet-core/services/LY.MicroService.Applications.Single/LY.MicroService.Applications.Single.csproj
@@ -107,7 +107,7 @@
-
+
diff --git a/aspnet-core/services/LY.MicroService.Applications.Single/MicroServiceApplicationsSingleModule.cs b/aspnet-core/services/LY.MicroService.Applications.Single/MicroServiceApplicationsSingleModule.cs
index 1b3b3c4b7..38fc4e380 100644
--- a/aspnet-core/services/LY.MicroService.Applications.Single/MicroServiceApplicationsSingleModule.cs
+++ b/aspnet-core/services/LY.MicroService.Applications.Single/MicroServiceApplicationsSingleModule.cs
@@ -403,7 +403,7 @@ namespace LY.MicroService.Applications.Single;
typeof(AbpAspNetCoreMultiTenancyModule),
typeof(AbpAspNetCoreMvcUiMultiTenancyModule),
typeof(AbpDynamicDefinitionsModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpSwashbuckleModule),
typeof(AbpMailKitModule),
typeof(AbpAutofacModule),
diff --git a/aspnet-core/services/LY.MicroService.IdentityServer.HttpApi.Host/IdentityServerHttpApiHostModule.cs b/aspnet-core/services/LY.MicroService.IdentityServer.HttpApi.Host/IdentityServerHttpApiHostModule.cs
index a3de8720d..a74f00cdb 100644
--- a/aspnet-core/services/LY.MicroService.IdentityServer.HttpApi.Host/IdentityServerHttpApiHostModule.cs
+++ b/aspnet-core/services/LY.MicroService.IdentityServer.HttpApi.Host/IdentityServerHttpApiHostModule.cs
@@ -3,7 +3,7 @@ using LINGYUN.Abp.AspNetCore.Mvc.Localization;
using LINGYUN.Abp.AspNetCore.Mvc.Wrapper;
using LINGYUN.Abp.AuditLogging.Elasticsearch;
using LINGYUN.Abp.Authorization.OrganizationUnits;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Emailing.Platform;
using LINGYUN.Abp.EntityFrameworkCore.MySQL;
using LINGYUN.Abp.EventBus.CAP;
@@ -80,7 +80,7 @@ namespace LY.MicroService.IdentityServer;
typeof(AbpTelemetryOpenTelemetryModule),
typeof(AbpTelemetrySkyWalkingModule),
typeof(AbpExporterMiniSoftwareModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpSwashbuckleModule),
typeof(AbpAutofacModule)
)]
diff --git a/aspnet-core/services/LY.MicroService.IdentityServer.HttpApi.Host/LY.MicroService.identityServer.HttpApi.Host.csproj b/aspnet-core/services/LY.MicroService.IdentityServer.HttpApi.Host/LY.MicroService.identityServer.HttpApi.Host.csproj
index 6138e15db..1cb64b4bc 100644
--- a/aspnet-core/services/LY.MicroService.IdentityServer.HttpApi.Host/LY.MicroService.identityServer.HttpApi.Host.csproj
+++ b/aspnet-core/services/LY.MicroService.IdentityServer.HttpApi.Host/LY.MicroService.identityServer.HttpApi.Host.csproj
@@ -62,7 +62,7 @@
-
+
diff --git a/aspnet-core/templates/micro/content/Directory.Packages.props b/aspnet-core/templates/micro/content/Directory.Packages.props
index 41a8dc17b..e700158d2 100644
--- a/aspnet-core/templates/micro/content/Directory.Packages.props
+++ b/aspnet-core/templates/micro/content/Directory.Packages.props
@@ -12,7 +12,7 @@
-
+
diff --git a/aspnet-core/templates/micro/content/host/PackageName.CompanyName.ProjectName.HttpApi.Host/PackageName.CompanyName.ProjectName.HttpApi.Host.csproj b/aspnet-core/templates/micro/content/host/PackageName.CompanyName.ProjectName.HttpApi.Host/PackageName.CompanyName.ProjectName.HttpApi.Host.csproj
index 392fcfbe3..a43582df5 100644
--- a/aspnet-core/templates/micro/content/host/PackageName.CompanyName.ProjectName.HttpApi.Host/PackageName.CompanyName.ProjectName.HttpApi.Host.csproj
+++ b/aspnet-core/templates/micro/content/host/PackageName.CompanyName.ProjectName.HttpApi.Host/PackageName.CompanyName.ProjectName.HttpApi.Host.csproj
@@ -15,7 +15,7 @@
-
+
diff --git a/aspnet-core/templates/micro/content/host/PackageName.CompanyName.ProjectName.HttpApi.Host/ProjectNameHttpApiHostModule.cs b/aspnet-core/templates/micro/content/host/PackageName.CompanyName.ProjectName.HttpApi.Host/ProjectNameHttpApiHostModule.cs
index f834ea76b..8bc9c947d 100644
--- a/aspnet-core/templates/micro/content/host/PackageName.CompanyName.ProjectName.HttpApi.Host/ProjectNameHttpApiHostModule.cs
+++ b/aspnet-core/templates/micro/content/host/PackageName.CompanyName.ProjectName.HttpApi.Host/ProjectNameHttpApiHostModule.cs
@@ -3,7 +3,7 @@ using LINGYUN.Abp.AspNetCore.Mvc.Wrapper;
using LINGYUN.Abp.AspNetCore.Session;
using LINGYUN.Abp.AuditLogging.Elasticsearch;
using LINGYUN.Abp.BlobStoring.BlobManagement;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Dynamic.Definitions;
using LINGYUN.Abp.Emailing.Platform;
using LINGYUN.Abp.EventBus.CAP;
@@ -75,7 +75,7 @@ namespace PackageName.CompanyName.ProjectName;
typeof(AbpTelemetrySkyWalkingModule),
typeof(AbpTelemetryOpenTelemetryModule),
typeof(AbpExporterMiniSoftwareModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpEmailingPlatformModule),
typeof(AbpSmsPlatformModule),
typeof(AbpSwashbuckleModule),
diff --git a/gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.Gateway/InternalGatewayModule.cs b/gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.Gateway/InternalGatewayModule.cs
index 13da3ce6b..1fe5a4a98 100644
--- a/gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.Gateway/InternalGatewayModule.cs
+++ b/gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.Gateway/InternalGatewayModule.cs
@@ -1,6 +1,6 @@
using Autofac.Core;
using LINGYUN.Abp.AspNetCore.Mvc.Wrapper;
-using LINGYUN.Abp.Claims.Mapping;
+using LINGYUN.Abp.AspNetCore.Authentication;
using LINGYUN.Abp.Serilog.Enrichers.Application;
using LINGYUN.Abp.Serilog.Enrichers.UniqueId;
using Microsoft.AspNetCore.Authentication.JwtBearer;
@@ -12,6 +12,7 @@ using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
+using Microsoft.IdentityModel.Logging;
using Microsoft.IdentityModel.Tokens;
using Microsoft.OpenApi;
using StackExchange.Redis;
@@ -34,7 +35,7 @@ namespace LINGYUN.MicroService.Internal.Gateway;
[DependsOn(
typeof(AbpSerilogEnrichersApplicationModule),
typeof(AbpSerilogEnrichersUniqueIdModule),
- typeof(AbpClaimsMappingModule),
+ typeof(AbpAspNetCoreAuthenticationModule),
typeof(AbpAutofacModule),
typeof(AbpDataModule),
typeof(AbpSwashbuckleModule),
@@ -46,6 +47,7 @@ public class InternalGatewayModule : AbpModule
public static string ApplicationName { get; set; } = "InternalApiGateway";
public override void PreConfigureServices(ServiceConfigurationContext context)
{
+ var configuration = context.Services.GetConfiguration();
AbpSerilogEnrichersConsts.ApplicationName = ApplicationName;
PreConfigure(options =>
@@ -55,6 +57,12 @@ public class InternalGatewayModule : AbpModule
options.SnowflakeIdOptions.WorkerIdBits = 5;
options.SnowflakeIdOptions.DatacenterId = 1;
});
+
+ if (configuration.GetValue("App:ShowPii"))
+ {
+ IdentityModelEventSource.ShowPII = true;
+ IdentityModelEventSource.LogCompleteSecurityArtifact = true;
+ }
}
public override void ConfigureServices(ServiceConfigurationContext context)
@@ -70,25 +78,29 @@ public class InternalGatewayModule : AbpModule
options.ControllersToRemove.Add(typeof(AbpApplicationConfigurationScriptController));
});
- context.Services.AddAbpSwaggerGenWithOAuth(
- authority: configuration["AuthServer:Authority"],
- scopes: new Dictionary
- {
- {"identity-service", "Identity Service API"},
- {"admin-service", "Admin Service API"},
- {"localization-service", "Localization Service API"},
- {"platform-service", "Platform Service API"},
- {"message-service", "Message Service API"},
- {"task-service", "Task Service API"},
- {"webhook-service", "Webhook Service API"},
- {"wechat-service", "WeChat Service API"},
- },
- options =>
- {
- options.SwaggerDoc("v1", new OpenApiInfo { Title = "ApiGateway", Version = "v1" });
- options.DocInclusionPredicate((docName, description) => true);
- options.CustomSchemaIds(type => type.FullName);
- });
+ if (hostingEnvironment.IsDevelopment())
+ {
+ context.Services.AddAbpSwaggerGenWithOAuth(
+ authority: configuration["AuthServer:Authority"],
+ scopes: new Dictionary
+ {
+ {"identity-service", "Identity Service API"},
+ {"admin-service", "Admin Service API"},
+ {"localization-service", "Localization Service API"},
+ {"platform-service", "Platform Service API"},
+ {"message-service", "Message Service API"},
+ {"task-service", "Task Service API"},
+ {"webhook-service", "Webhook Service API"},
+ {"wechat-service", "WeChat Service API"},
+ },
+ options =>
+ {
+ options.SwaggerDoc("v1", new OpenApiInfo { Title = "ApiGateway", Version = "v1" });
+ options.DocInclusionPredicate((docName, description) => true);
+ options.CustomSchemaIds(type => type.FullName);
+ });
+ }
+
context.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddJwtBearer(options =>
{
@@ -175,49 +187,52 @@ public class InternalGatewayModule : AbpModule
// 授权
app.UseAuthorization();
- app.UseSwagger();
- app.UseSwaggerUI(options =>
+ if (env.IsDevelopment())
{
- options.SwaggerEndpoint("/swagger/v1/swagger.json", "Open API Document");
-
- var configuration = context.ServiceProvider.GetRequiredService();
- var logger = context.ServiceProvider.GetRequiredService>();
- var proxyConfigProvider = context.ServiceProvider.GetRequiredService();
- var yarpConfig = proxyConfigProvider.GetConfig();
+ app.UseSwagger();
+ app.UseSwaggerUI(options =>
+ {
+ options.SwaggerEndpoint("/swagger/v1/swagger.json", "Open API Document");
- var routedClusters = yarpConfig.Clusters
- .SelectMany(t => t.Destinations,
- (clusterId, destination) => new { clusterId.ClusterId, destination.Value });
+ var configuration = context.ServiceProvider.GetRequiredService();
+ var logger = context.ServiceProvider.GetRequiredService>();
+ var proxyConfigProvider = context.ServiceProvider.GetRequiredService();
+ var yarpConfig = proxyConfigProvider.GetConfig();
- var groupedClusters = routedClusters
- .GroupBy(q => q.Value.Address)
- .Select(t => t.First())
- .Distinct()
- .ToList();
+ var routedClusters = yarpConfig.Clusters
+ .SelectMany(t => t.Destinations,
+ (clusterId, destination) => new { clusterId.ClusterId, destination.Value });
- foreach (var clusterGroup in groupedClusters)
- {
- var routeConfig = yarpConfig.Routes.FirstOrDefault(q =>
- q.ClusterId == clusterGroup.ClusterId);
- if (routeConfig == null)
- {
- logger.LogWarning($"Swagger UI: Couldn't find route configuration for {clusterGroup.ClusterId}...");
- continue;
- }
+ var groupedClusters = routedClusters
+ .GroupBy(q => q.Value.Address)
+ .Select(t => t.First())
+ .Distinct()
+ .ToList();
- var swaggerEndpoint = clusterGroup.Value.Address;
- if (clusterGroup.Value.Metadata != null &&
- clusterGroup.Value.Metadata.TryGetValue("SwaggerEndpoint", out var address) &&
- !address.IsNullOrWhiteSpace())
+ foreach (var clusterGroup in groupedClusters)
{
- swaggerEndpoint = address;
+ var routeConfig = yarpConfig.Routes.FirstOrDefault(q =>
+ q.ClusterId == clusterGroup.ClusterId);
+ if (routeConfig == null)
+ {
+ logger.LogWarning($"Swagger UI: Couldn't find route configuration for {clusterGroup.ClusterId}...");
+ continue;
+ }
+
+ var swaggerEndpoint = clusterGroup.Value.Address;
+ if (clusterGroup.Value.Metadata != null &&
+ clusterGroup.Value.Metadata.TryGetValue("SwaggerEndpoint", out var address) &&
+ !address.IsNullOrWhiteSpace())
+ {
+ swaggerEndpoint = address;
+ }
+
+ options.SwaggerEndpoint($"{swaggerEndpoint}/swagger/v1/swagger.json", $"{routeConfig.RouteId} API");
+ options.OAuthClientId(configuration["AuthServer:SwaggerClientId"]);
+ options.OAuthClientSecret(configuration["AuthServer:SwaggerClientSecret"]);
}
-
- options.SwaggerEndpoint($"{swaggerEndpoint}/swagger/v1/swagger.json", $"{routeConfig.RouteId} API");
- options.OAuthClientId(configuration["AuthServer:SwaggerClientId"]);
- options.OAuthClientSecret(configuration["AuthServer:SwaggerClientSecret"]);
- }
- });
+ });
+ }
// app.UseRewriter(new RewriteOptions().AddRedirect("^(|\\|\\s+)$", "/swagger"));
@@ -225,10 +240,10 @@ public class InternalGatewayModule : AbpModule
app.UseAuditing();
app.UseWebSockets();
app.UseWebSocketsTelemetry();
+ app.UseAbpSerilogEnrichers();
app.UseConfiguredEndpoints(endpoints =>
{
endpoints.MapReverseProxy();
});
- app.UseAbpSerilogEnrichers();
}
}
diff --git a/gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.Gateway/LINGYUN.MicroService.Internal.Gateway.csproj b/gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.Gateway/LINGYUN.MicroService.Internal.Gateway.csproj
index 2316d7484..054a74d05 100644
--- a/gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.Gateway/LINGYUN.MicroService.Internal.Gateway.csproj
+++ b/gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.Gateway/LINGYUN.MicroService.Internal.Gateway.csproj
@@ -37,7 +37,7 @@
-
+
diff --git a/gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.Gateway/appsettings.Development.json b/gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.Gateway/appsettings.Development.json
index da4427892..bfede5be3 100644
--- a/gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.Gateway/appsettings.Development.json
+++ b/gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.Gateway/appsettings.Development.json
@@ -17,8 +17,8 @@
},
"AuthServer": {
"Authority": "http://localhost:44385/",
- "Audience": "lingyun-abp-application",
- "ValidAudiences": [ "api-gateway" ],
+ "Audience": "api-gateway",
+ "ValidAudiences": [ "lingyun-abp-application" ],
"MapInboundClaims": false,
"RequireHttpsMetadata": false
},