@@ -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() |
@@ -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"; | |||
} |
@@ -66,5 +66,4 @@ public class PermitPathConstant { | |||
"/api/inspection/dsp/callback/**", | |||
"/api/inspection/third/test/callback/**" | |||
}; | |||
} |
@@ -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 |