소스 검색

Merge branch 'release' of gitadmin/tuoheng_gateway into master

pull/120/head
gitadmin 1 년 전
부모
커밋
a4082e16ee
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -1
      src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java
  2. +2
    -1
      src/main/java/com/tuoheng/gateway/constants/PermitPathConstant.java

+ 2
- 1
src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java 파일 보기

@@ -67,7 +67,7 @@ public class WebSecurityConfig {
String[] telecomumalePermitPath = PermitPathConstant.telecomumaleUrlStr;
httpSecurity
.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(freewayPermitPath).permitAll()
.pathMatchers(waterwayPermitPath).permitAll()
@@ -90,6 +90,7 @@ public class WebSecurityConfig {
.pathMatchers("/airmonitor/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_AIRMONITOR_ADMIN)
.pathMatchers("/oidc/admin/user/**").authenticated()
.pathMatchers("/api/inspection/**").authenticated()
.pathMatchers(OAUTH_PATH).authenticated()
//.pathMatchers(PERMIT_PATH).permitAll()
.anyExchange().permitAll()
.and()

+ 2
- 1
src/main/java/com/tuoheng/gateway/constants/PermitPathConstant.java 파일 보기

@@ -94,6 +94,7 @@ public class PermitPathConstant {
"/telecomumale/admin/airport/inspection/track/**",
"/telecomumale/admin/cloudbox/callback/add/**",
"/telecomumale/admin/airport/inspection/executeTaskStatus/**",
"/telecomumale/admin/weiXin/send/message/**"
"/telecomumale/admin/weiXin/send/message/**",
"/telecomumale/miniprogram/weiXin/**"
};
}

Loading…
취소
저장