Sfoglia il codice sorgente

添加DSP 巡检云免登录接口

pull/85/head
wubin 1 anno fa
parent
commit
be6c22a004
2 ha cambiato i file con 12 aggiunte e 0 eliminazioni
  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 Vedi File

String[] hhzPermitPath = PermitPathConstant.hhzPermitUrlStr; String[] hhzPermitPath = PermitPathConstant.hhzPermitUrlStr;
String[] freewayPermitPath = PermitPathConstant.freewayPermitUrlStr; String[] freewayPermitPath = PermitPathConstant.freewayPermitUrlStr;
String[] waterwayPermitPath = PermitPathConstant.waterwayPermitUrlStr; String[] waterwayPermitPath = PermitPathConstant.waterwayPermitUrlStr;
String[] dspInspectionPermitUrlStr = PermitPathConstant.dspInspectionPermitUrlStr;
httpSecurity httpSecurity
.authorizeExchange() .authorizeExchange()
.pathMatchers(OAUTH_PATH).hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_DSP_MP, AuthorityConstant.SCOPE_TUOHNEG_DSP_WEB) .pathMatchers(OAUTH_PATH).hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_DSP_MP, AuthorityConstant.SCOPE_TUOHNEG_DSP_WEB)
.pathMatchers(hhzPermitPath).permitAll() .pathMatchers(hhzPermitPath).permitAll()
.pathMatchers(freewayPermitPath).permitAll() .pathMatchers(freewayPermitPath).permitAll()
.pathMatchers(waterwayPermitPath).permitAll() .pathMatchers(waterwayPermitPath).permitAll()
.pathMatchers(dspInspectionPermitUrlStr).permitAll()
.pathMatchers("/pilot/miniprogram/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_PILOT_MP) .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("/pilot/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_PILOT_ADMIN)
.pathMatchers("/hhz/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_HHZ_ADMIN) .pathMatchers("/hhz/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_HHZ_ADMIN)

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

"/waterway/admin/airport/inspection/executeTaskStatus/**" "/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…
Annulla
Salva