Browse Source

first commit

pull/1/head
chenjiandong 1 year ago
parent
commit
5f590803d5
3 changed files with 5 additions and 5 deletions
  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 View File

@@ -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 View File

@@ -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 View File

@@ -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

Loading…
Cancel
Save