Przeglądaj źródła

Merge branch 'develop' of gitadmin/tuoheng_gateway into release

pull/21/head
gitadmin 2 lat temu
rodzic
commit
886e1ebf03
2 zmienionych plików z 5 dodań i 0 usunięć
  1. +1
    -0
      src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java
  2. +4
    -0
      src/main/java/com/tuoheng/gateway/constants/AuthorityConstant.java

+ 1
- 0
src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java Wyświetl plik

@@ -70,6 +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("/pilot/miniprogram/**","/pilot/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_PILOT_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_PILOT_MP)
.pathMatchers("/oidc/admin/**").authenticated()
//.pathMatchers(PERMIT_PATH).permitAll()
.anyExchange().permitAll()

+ 4
- 0
src/main/java/com/tuoheng/gateway/constants/AuthorityConstant.java Wyświetl plik

@@ -20,6 +20,10 @@ public class AuthorityConstant {
*/
public static final String SCOPE_TUOHNEG_DSP_WEB = "SCOPE_tuoheng-dsp-web";

public static final String SCOPE_TUOHNEG_PILOT_ADMIN = "SCOPE_tuoheng-pilot-admin";

public static final String SCOPE_TUOHNEG_PILOT_MP = "SCOPE_tuoheng-pilot-mp";

public static final String SCOPE_TUOHNEG_OIDC_ADMIN = "SCOPE_tuoheng-oidc-admin";

/**

Ładowanie…
Anuluj
Zapisz