瀏覽代碼

增加oidc-gateway 路由

pull/17/head
chenjiandong 2 年之前
父節點
當前提交
0897002bc2
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java

+ 1
- 1
src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java 查看文件

@@ -70,7 +70,7 @@ public class WebSecurityConfig {
.pathMatchers("/api/system/demo/dsp").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_DSP_MP)
.pathMatchers("/api/system/demo/hhz").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_DSP_WEB)
.pathMatchers(OAUTH_PATH).hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_DSP_MP, AuthorityConstant.SCOPE_TUOHNEG_DSP_WEB)
.pathMatchers("/oidc/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_OIDC_ADMIN)
.pathMatchers("/oidc/admin/**").authenticated()
//.pathMatchers(PERMIT_PATH).permitAll()
.anyExchange().permitAll()
.and()

Loading…
取消
儲存