Ver código fonte

first commit

pull/1/head
chenjiandong 2 anos atrás
pai
commit
5f590803d5
3 arquivos alterados com 5 adições e 5 exclusões
  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 Ver arquivo

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

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

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

Carregando…
Cancelar
Salvar