Browse Source

Merge branch 'develop' of gitadmin/tuoheng_gateway into release

pull/112/head
xuziqing 1 year ago
parent
commit
bc2730e1ad
5 changed files with 23 additions and 1 deletions
  1. +1
    -0
      src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java
  2. +1
    -1
      src/main/java/com/tuoheng/gateway/constants/AuthorityConstant.java
  3. +7
    -0
      src/main/resources/application-dev.yml
  4. +7
    -0
      src/main/resources/application-prod.yml
  5. +7
    -0
      src/main/resources/application-test.yml

+ 1
- 0
src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java View File

@@ -84,6 +84,7 @@ public class WebSecurityConfig {
.pathMatchers("/oidc/admin/tenant/**", "/oidc/admin/client/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_OIDC_ADMIN)
.pathMatchers("/waterway/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_WATERWAY_ADMIN)
.pathMatchers("/waterway/miniprogram/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_WATERWAY_MP)
.pathMatchers("/telecomumale/miniprogram/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_TELECOMUMALE_MP)
.pathMatchers("/telecomumale/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_TELECOMUMALE_ADMIN)
.pathMatchers("/weptsp/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_WEPTSP_ADMIN)
.pathMatchers("/airmonitor/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_AIRMONITOR_ADMIN)

+ 1
- 1
src/main/java/com/tuoheng/gateway/constants/AuthorityConstant.java View File

@@ -63,5 +63,5 @@ public class AuthorityConstant {
* Telecomumale 用户权限
*/
public static final String SCOPE_TUOHNEG_TELECOMUMALE_ADMIN = "SCOPE_tuoheng-telecomumale-admin";
//public static final String SCOPE_TUOHNEG_AIRPORT_MP= "SCOPE_tuoheng-weptsp-mp";
public static final String SCOPE_TUOHNEG_TELECOMUMALE_MP= "SCOPE_tuoheng-telecomumale-mp";
}

+ 7
- 0
src/main/resources/application-dev.yml View File

@@ -238,6 +238,13 @@ spring:
- Path=/telecomumale/admin/**
filters:
- StripPrefix=2
# 电信城管mp服务
- id: tuoheng-telecomumale-miniprogram
uri: lb://tuoheng-telecomumale-miniprogram
predicates:
- Path=/telecomumale/miniprogram/**
filters:
- StripPrefix=2
# Redis数据源
redis:
# 缓存库默认索引0

+ 7
- 0
src/main/resources/application-prod.yml View File

@@ -216,6 +216,13 @@ spring:
- Path=/telecomumale/admin/**
filters:
- StripPrefix=2
# 电信城管mp服务
- id: tuoheng-telecomumale-miniprogram
uri: lb://tuoheng-telecomumale-miniprogram
predicates:
- Path=/telecomumale/miniprogram/**
filters:
- StripPrefix=2
# Redis数据源
redis:
# 缓存库默认索引0

+ 7
- 0
src/main/resources/application-test.yml View File

@@ -231,6 +231,13 @@ spring:
- Path=/telecomumale/admin/**
filters:
- StripPrefix=2
# 电信城管mp服务
- id: tuoheng-telecomumale-miniprogram
uri: lb://tuoheng-telecomumale-miniprogram
predicates:
- Path=/telecomumale/miniprogram/**
filters:
- StripPrefix=2
# Redis数据源
redis:
# 缓存库默认索引0

Loading…
Cancel
Save