Procházet zdrojové kódy

first commit

pull/1/head
chenjiandong před 1 rokem
rodič
revize
5f590803d5
3 změnil soubory, kde provedl 5 přidání a 5 odebrání
  1. +3
    -3
      src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java
  2. +1
    -1
      target/classes/WEB-INF/classes/application-local.yml
  3. +1
    -1
      target/classes/application-local.yml

+ 3
- 3
src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java Zobrazit soubor

@@ -49,9 +49,9 @@ public class WebSecurityConfig {
httpSecurity
.authorizeExchange()
.pathMatchers(OAUTH_PATH).authenticated()
.pathMatchers("/api/system/**").hasAnyRole("ROLE_ADMIN", "ROLE_DSP")
.pathMatchers(PERMIT_PATH).permitAll()
.anyExchange().authenticated()
//.pathMatchers("/api/system/**").hasAnyRole("ROLE_ADMIN", "ROLE_DSP")
//.pathMatchers(PERMIT_PATH).permitAll()
.anyExchange().permitAll()
.and()
.csrf()
.disable()

+ 1
- 1
target/classes/WEB-INF/classes/application-local.yml Zobrazit soubor

@@ -125,4 +125,4 @@ spring:
security:
ignore:
permitUrls: /api/system/demo/msg
oauthUrls: /api/*/serviceInst/*/getServiceInstParam/*,/api/*/serviceInst/*/getServiceInstCaseUrl/*,/api/*/serviceInst/*/*/application,/api/*/serviceInst/*/*/questionList
oauthUrls: /api/system/demo/hello,/api/*/serviceInst/*/getServiceInstParam/*,/api/*/serviceInst/*/getServiceInstCaseUrl/*,/api/*/serviceInst/*/*/application,/api/*/serviceInst/*/*/questionList

+ 1
- 1
target/classes/application-local.yml Zobrazit soubor

@@ -125,4 +125,4 @@ spring:
security:
ignore:
permitUrls: /api/system/demo/msg
oauthUrls: /api/*/serviceInst/*/getServiceInstParam/*,/api/*/serviceInst/*/getServiceInstCaseUrl/*,/api/*/serviceInst/*/*/application,/api/*/serviceInst/*/*/questionList
oauthUrls: /api/system/demo/hello,/api/*/serviceInst/*/getServiceInstParam/*,/api/*/serviceInst/*/getServiceInstCaseUrl/*,/api/*/serviceInst/*/*/application,/api/*/serviceInst/*/*/questionList

Načítá se…
Zrušit
Uložit