Browse Source

新增水环境相关配置

pull/104/head
xiaoying 1 year ago
parent
commit
798214f759
4 changed files with 15 additions and 2 deletions
  1. +1
    -0
      src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java
  2. +5
    -0
      src/main/java/com/tuoheng/gateway/constants/AuthorityConstant.java
  3. +0
    -1
      src/main/java/com/tuoheng/gateway/constants/PermitPathConstant.java
  4. +9
    -1
      src/main/resources/application-dev.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("/weptsp/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_WEPTSP_ADMIN)
.pathMatchers("/oidc/admin/user/**").authenticated()
.pathMatchers("/api/inspection/**").authenticated()
//.pathMatchers(PERMIT_PATH).permitAll()

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

@@ -47,4 +47,9 @@ public class AuthorityConstant {

public static final String SCOPE_TUOHNEG_WATERWAY_MP = "SCOPE_tuoheng-waterway-mp";

/**
* Weptsp 用户权限
*/
public static final String SCOPE_TUOHNEG_WEPTSP_ADMIN = "SCOPE_tuoheng-weptsp-admin";
//public static final String SCOPE_TUOHNEG_AIRPORT_MP= "SCOPE_tuoheng-weptsp-mp";
}

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

@@ -66,5 +66,4 @@ public class PermitPathConstant {
"/api/inspection/dsp/callback/**",
"/api/inspection/third/test/callback/**"
};

}

+ 9
- 1
src/main/resources/application-dev.yml View File

@@ -210,6 +210,13 @@ spring:
- Path=/waterway/web/**
filters:
- StripPrefix=2
# weptsp admin服务
- id: tuoheng-weptsp-admin
uri: lb://tuoheng-weptsp-admin
predicates:
- Path=/weptsp/admin/**
filters:
- StripPrefix=2

# Redis数据源
redis:
@@ -241,4 +248,5 @@ security:
tuoheng:
hhz-admin-perUrl: http://192.168.11.11:9055/permission/getRoleIdList
freeway-admin-perUrl: http://192.168.11.11:9117/permission/getRoleIdList
waterway-admin-perUrl: http://192.168.11.11:9120/permission/getRoleIdList
waterway-admin-perUrl: http://192.168.11.11:9120/permission/getRoleIdList
weptsp-admin-perUrl: http://192.168.11.11:9188/permission/getRoleIdList

Loading…
Cancel
Save