Browse Source

添加DSP 巡检云免登录接口

pull/85/head
wubin 1 year ago
parent
commit
be6c22a004
2 changed files with 12 additions and 0 deletions
  1. +2
    -0
      src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java
  2. +10
    -0
      src/main/java/com/tuoheng/gateway/constants/PermitPathConstant.java

+ 2
- 0
src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java View File

@@ -67,12 +67,14 @@ public class WebSecurityConfig {
String[] hhzPermitPath = PermitPathConstant.hhzPermitUrlStr;
String[] freewayPermitPath = PermitPathConstant.freewayPermitUrlStr;
String[] waterwayPermitPath = PermitPathConstant.waterwayPermitUrlStr;
String[] dspInspectionPermitUrlStr = PermitPathConstant.dspInspectionPermitUrlStr;
httpSecurity
.authorizeExchange()
.pathMatchers(OAUTH_PATH).hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_DSP_MP, AuthorityConstant.SCOPE_TUOHNEG_DSP_WEB)
.pathMatchers(hhzPermitPath).permitAll()
.pathMatchers(freewayPermitPath).permitAll()
.pathMatchers(waterwayPermitPath).permitAll()
.pathMatchers(dspInspectionPermitUrlStr).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)

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

@@ -53,4 +53,14 @@ public class PermitPathConstant {
"/waterway/admin/airport/inspection/executeTaskStatus/**"
};

public static String dspInspectionPermitUrlStr[] = {
"/api/inspection/airport/inspection/executeTaskStatus/**",
"/api/inspection/airport/inspection/status/**",
"/api/inspection/airport/inspection/track/**",
"/api/inspection/pilot/inspection/updateTaskByCode/**",
"/api/inspection/pilot/inspection/uploadFlightUrl/**",
"/api/inspection/flightdata/callback/**",
"/api/inspection/dsp/callback/**"
};

}

Loading…
Cancel
Save