Преглед на файлове

运营管理中心dsp无需配置权限

pull/116/head
chenjiandong преди 1 година
родител
ревизия
dfa474901d
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. +2
    -1
      src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.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()

Loading…
Отказ
Запис