소스 검색

Merge branch 'develop' of gitadmin/tuoheng_gateway into release

pull/112/head
xuziqing 1 년 전
부모
커밋
a1297e8f15
2개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java
  2. +9
    -0
      src/main/java/com/tuoheng/gateway/constants/PermitPathConstant.java

+ 2
- 0
src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java 파일 보기

@@ -64,6 +64,7 @@ public class WebSecurityConfig {
String[] dspInspectionPermitUrlStr = PermitPathConstant.dspInspectionPermitUrlStr;
String[] weptspPermitPath = PermitPathConstant.weptspPermitUrlStr;
String[] airmonitorPermitPath = PermitPathConstant.airmonitorPermitUrlStr;
String[] telecomumalePermitPath = PermitPathConstant.telecomumaleUrlStr;
httpSecurity
.authorizeExchange()
.pathMatchers(OAUTH_PATH).hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_DSP_MP, AuthorityConstant.SCOPE_TUOHNEG_DSP_WEB)
@@ -73,6 +74,7 @@ public class WebSecurityConfig {
.pathMatchers(dspInspectionPermitUrlStr).permitAll()
.pathMatchers(weptspPermitPath).permitAll()
.pathMatchers(airmonitorPermitPath).permitAll()
.pathMatchers(telecomumalePermitPath).permitAll()
.pathMatchers("/pilot/miniprogram/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_PILOT_MP)
.pathMatchers("/pilot/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_PILOT_ADMIN)
.pathMatchers("/hhz/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_HHZ_ADMIN)

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

@@ -80,4 +80,13 @@ public class PermitPathConstant {
"/airmonitor/admin/inspection/uploadFlightUrl/**",
"/airmonitor/admin/inspection/updateTaskByCode/**"
};
public static String telecomumaleUrlStr[] = {
"/telecomumale/admin/inspection/uploadFlightUrl/**",
"/telecomumale/admin/inspection/updateTaskByCode/**",
"/telecomumale/admin/dsp/callback/**",
"/telecomumale/admin/airport/inspection/status/**",
"/telecomumale/admin/airport/inspection/track/**",
"/telecomumale/admin/cloudbox/callback/add/**",
"/telecomumale/admin/airport/inspection/executeTaskStatus/**"
};
}

Loading…
취소
저장