.pathMatchers("/oidc/admin/tenant/**", "/oidc/admin/client/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_OIDC_ADMIN) | .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/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_WATERWAY_ADMIN) | ||||
.pathMatchers("/waterway/miniprogram/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_WATERWAY_MP) | .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("/oidc/admin/user/**").authenticated() | ||||
.pathMatchers("/api/inspection/**").authenticated() | .pathMatchers("/api/inspection/**").authenticated() | ||||
//.pathMatchers(PERMIT_PATH).permitAll() | //.pathMatchers(PERMIT_PATH).permitAll() |
public static final String SCOPE_TUOHNEG_WATERWAY_MP = "SCOPE_tuoheng-waterway-mp"; | 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"; | |||||
} | } |
"/api/inspection/dsp/callback/**", | "/api/inspection/dsp/callback/**", | ||||
"/api/inspection/third/test/callback/**" | "/api/inspection/third/test/callback/**" | ||||
}; | }; | ||||
} | } |
- Path=/waterway/web/** | - Path=/waterway/web/** | ||||
filters: | filters: | ||||
- StripPrefix=2 | - StripPrefix=2 | ||||
# weptsp admin服务 | |||||
- id: tuoheng-weptsp-admin | |||||
uri: lb://tuoheng-weptsp-admin | |||||
predicates: | |||||
- Path=/weptsp/admin/** | |||||
filters: | |||||
- StripPrefix=2 | |||||
# Redis数据源 | # Redis数据源 | ||||
redis: | redis: | ||||
tuoheng: | tuoheng: | ||||
hhz-admin-perUrl: http://192.168.11.11:9055/permission/getRoleIdList | hhz-admin-perUrl: http://192.168.11.11:9055/permission/getRoleIdList | ||||
freeway-admin-perUrl: http://192.168.11.11:9117/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 |