瀏覽代碼

设置水环境监测白名单

pull/104/head
xiaoying 1 年之前
父節點
當前提交
c4a2b1ce25
共有 2 個文件被更改,包括 8 次插入0 次删除
  1. +2
    -0
      src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java
  2. +6
    -0
      src/main/java/com/tuoheng/gateway/constants/PermitPathConstant.java

+ 2
- 0
src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java 查看文件

@@ -68,6 +68,7 @@ public class WebSecurityConfig {
String[] freewayPermitPath = PermitPathConstant.freewayPermitUrlStr;
String[] waterwayPermitPath = PermitPathConstant.waterwayPermitUrlStr;
String[] dspInspectionPermitUrlStr = PermitPathConstant.dspInspectionPermitUrlStr;
String[] weptspPermitPath = PermitPathConstant.weptspPermitUrlStr;
httpSecurity
.authorizeExchange()
.pathMatchers(OAUTH_PATH).hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_DSP_MP, AuthorityConstant.SCOPE_TUOHNEG_DSP_WEB)
@@ -75,6 +76,7 @@ public class WebSecurityConfig {
.pathMatchers(freewayPermitPath).permitAll()
.pathMatchers(waterwayPermitPath).permitAll()
.pathMatchers(dspInspectionPermitUrlStr).permitAll()
.pathMatchers(weptspPermitPath).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)

+ 6
- 0
src/main/java/com/tuoheng/gateway/constants/PermitPathConstant.java 查看文件

@@ -66,4 +66,10 @@ public class PermitPathConstant {
"/api/inspection/dsp/callback/**",
"/api/inspection/third/test/callback/**"
};

public static String weptspPermitUrlStr[] = {
"/weptsp/admin/download/workStreamExcel/**",
};


}

Loading…
取消
儲存