浏览代码

first commit

pull/1/head
chenjiandong 1年前
父节点
当前提交
5f590803d5
共有 3 个文件被更改,包括 5 次插入5 次删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

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

正在加载...
取消
保存