Pārlūkot izejas kodu

高速平台对接

pull/58/head
chenjiandong pirms 1 gada
vecāks
revīzija
b538da27b1
2 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. +2
    -0
      src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java
  2. +7
    -0
      src/main/java/com/tuoheng/gateway/constants/AuthorityConstant.java

+ 2
- 0
src/main/java/com/tuoheng/gateway/config/WebSecurityConfig.java Parādīt failu

@@ -73,6 +73,8 @@ public class WebSecurityConfig {
.pathMatchers("/pilot/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_PILOT_ADMIN)
.pathMatchers("/hhz/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_HHZ_ADMIN)
.pathMatchers("/hhz/api/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_HHZ_MP)
.pathMatchers("/freeway/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_FREEWAY_ADMIN)
.pathMatchers("/freeway/miniprogram/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_FREEWAY_MP)
.pathMatchers("/oidc/admin/tenant/**", "/oidc/admin/client/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_OIDC_ADMIN)
.pathMatchers("/oidc/admin/user/**").authenticated()
//.pathMatchers(PERMIT_PATH).permitAll()

+ 7
- 0
src/main/java/com/tuoheng/gateway/constants/AuthorityConstant.java Parādīt failu

@@ -33,4 +33,11 @@ public class AuthorityConstant {

public static final String SCOPE_TUOHNEG_HHZ_MP = "SCOPE_tuoheng-hhz-mp";

/**
* FreeWay 用户权限
*/
public static final String SCOPE_TUOHNEG_FREEWAY_ADMIN = "SCOPE_tuoheng-freeway-admin";

public static final String SCOPE_TUOHNEG_FREEWAY_MP = "SCOPE_tuoheng-freeway-mp";

}

Notiek ielāde…
Atcelt
Saglabāt