소스 검색

新增水环境相关配置

pull/104/head
xiaoying 1 년 전
부모
커밋
798214f759
4개의 변경된 파일15개의 추가작업 그리고 2개의 파일을 삭제
  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 파일 보기

.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()

+ 5
- 0
src/main/java/com/tuoheng/gateway/constants/AuthorityConstant.java 파일 보기



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";
} }

+ 0
- 1
src/main/java/com/tuoheng/gateway/constants/PermitPathConstant.java 파일 보기

"/api/inspection/dsp/callback/**", "/api/inspection/dsp/callback/**",
"/api/inspection/third/test/callback/**" "/api/inspection/third/test/callback/**"
}; };

} }

+ 9
- 1
src/main/resources/application-dev.yml 파일 보기

- 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

Loading…
취소
저장