Parcourir la source

Merge branch 'develop' of gitadmin/tuoheng_gateway into release

pull/112/head
xuziqing il y a 1 an
Parent
révision
a1297e8f15
2 fichiers modifiés avec 11 ajouts et 0 suppressions
  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 Voir le fichier

@@ -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 Voir le fichier

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

Chargement…
Annuler
Enregistrer