Ver código fonte

Merge branch 'develop' of gitadmin/tuoheng_gateway into release

pull/112/head
xuziqing 1 ano atrás
pai
commit
a1297e8f15
2 arquivos alterados com 11 adições e 0 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

@@ -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/**"
};
}

Carregando…
Cancelar
Salvar