diff --git a/aspnet-core/services/account/AuthServer.Host/AuthIdentityServerModule.cs b/aspnet-core/services/account/AuthServer.Host/AuthIdentityServerModule.cs index 11dabb09e..458939f79 100644 --- a/aspnet-core/services/account/AuthServer.Host/AuthIdentityServerModule.cs +++ b/aspnet-core/services/account/AuthServer.Host/AuthIdentityServerModule.cs @@ -192,6 +192,7 @@ namespace AuthServer.Host app.UseRouting(); app.UseCors(DefaultCorsPolicyName); app.UseAuthentication(); + app.UseAbpClaimsMap(); app.UseMultiTenancy(); app.UseIdentityServer(); app.UseAuthorization(); diff --git a/aspnet-core/services/admin/LINGYUN.Abp.BackendAdmin.HttpApi.Host/BackendAdminHostModule.cs b/aspnet-core/services/admin/LINGYUN.Abp.BackendAdmin.HttpApi.Host/BackendAdminHostModule.cs index bff31156e..83d74cc79 100644 --- a/aspnet-core/services/admin/LINGYUN.Abp.BackendAdmin.HttpApi.Host/BackendAdminHostModule.cs +++ b/aspnet-core/services/admin/LINGYUN.Abp.BackendAdmin.HttpApi.Host/BackendAdminHostModule.cs @@ -292,6 +292,7 @@ namespace LINGYUN.Abp.BackendAdmin app.UseRouting(); // 认证 app.UseAuthentication(); + app.UseAbpClaimsMap(); // jwt app.UseJwtTokenMiddleware(); // 多租户 diff --git a/aspnet-core/services/apigateway/LINGYUN.ApiGateway.HttpApi.Host/ApiGatewayHttpApiHostModule.cs b/aspnet-core/services/apigateway/LINGYUN.ApiGateway.HttpApi.Host/ApiGatewayHttpApiHostModule.cs index cc39316e7..ffe096a72 100644 --- a/aspnet-core/services/apigateway/LINGYUN.ApiGateway.HttpApi.Host/ApiGatewayHttpApiHostModule.cs +++ b/aspnet-core/services/apigateway/LINGYUN.ApiGateway.HttpApi.Host/ApiGatewayHttpApiHostModule.cs @@ -198,6 +198,7 @@ namespace LINGYUN.ApiGateway app.UseRouting(); // 认证 app.UseAuthentication(); + app.UseAbpClaimsMap(); // 多租户 // app.UseMultiTenancy(); // 本地化 diff --git a/aspnet-core/services/identity-server/LINGYUN.Abp.IdentityServer4.HttpApi.Host/AbpIdentityServerAdminHttpApiHostModule.cs b/aspnet-core/services/identity-server/LINGYUN.Abp.IdentityServer4.HttpApi.Host/AbpIdentityServerAdminHttpApiHostModule.cs index 65fa73387..9923e28d7 100644 --- a/aspnet-core/services/identity-server/LINGYUN.Abp.IdentityServer4.HttpApi.Host/AbpIdentityServerAdminHttpApiHostModule.cs +++ b/aspnet-core/services/identity-server/LINGYUN.Abp.IdentityServer4.HttpApi.Host/AbpIdentityServerAdminHttpApiHostModule.cs @@ -262,6 +262,7 @@ namespace LINGYUN.Abp.IdentityServer4 app.UseRouting(); // 认证 app.UseAuthentication(); + app.UseAbpClaimsMap(); // jwt app.UseJwtTokenMiddleware(); // 多租户 diff --git a/aspnet-core/services/messages/LINGYUN.Abp.MessageService.HttpApi.Host/AbpMessageServiceHttpApiHostModule.cs b/aspnet-core/services/messages/LINGYUN.Abp.MessageService.HttpApi.Host/AbpMessageServiceHttpApiHostModule.cs index c61d5540b..639b8965c 100644 --- a/aspnet-core/services/messages/LINGYUN.Abp.MessageService.HttpApi.Host/AbpMessageServiceHttpApiHostModule.cs +++ b/aspnet-core/services/messages/LINGYUN.Abp.MessageService.HttpApi.Host/AbpMessageServiceHttpApiHostModule.cs @@ -291,6 +291,7 @@ namespace LINGYUN.Abp.MessageService app.UseHangfireJwtToken(); // 认证 app.UseAuthentication(); + app.UseAbpClaimsMap(); // jwt app.UseJwtTokenMiddleware(); // 授权 diff --git a/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/AppPlatformHttpApiHostModule.cs b/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/AppPlatformHttpApiHostModule.cs index 5dde3c123..15752504c 100644 --- a/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/AppPlatformHttpApiHostModule.cs +++ b/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/AppPlatformHttpApiHostModule.cs @@ -265,6 +265,7 @@ namespace LINGYUN.Platform app.UseRouting(); // 认证 app.UseAuthentication(); + app.UseAbpClaimsMap(); // jwt app.UseJwtTokenMiddleware(); // 授权