Browse Source

use AbpClaimsMapMiddleware

pull/85/head
cKey 5 years ago
parent
commit
b5e1170b6e
  1. 1
      aspnet-core/services/account/AuthServer.Host/AuthIdentityServerModule.cs
  2. 1
      aspnet-core/services/admin/LINGYUN.Abp.BackendAdmin.HttpApi.Host/BackendAdminHostModule.cs
  3. 1
      aspnet-core/services/apigateway/LINGYUN.ApiGateway.HttpApi.Host/ApiGatewayHttpApiHostModule.cs
  4. 1
      aspnet-core/services/identity-server/LINGYUN.Abp.IdentityServer4.HttpApi.Host/AbpIdentityServerAdminHttpApiHostModule.cs
  5. 1
      aspnet-core/services/messages/LINGYUN.Abp.MessageService.HttpApi.Host/AbpMessageServiceHttpApiHostModule.cs
  6. 1
      aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/AppPlatformHttpApiHostModule.cs

1
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();

1
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();
// 多租户

1
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();
// 本地化

1
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();
// 多租户

1
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();
// 授权

1
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();
// 授权

Loading…
Cancel
Save