|
|
@@ -66,11 +66,9 @@ public class WebSecurityConfig { |
|
|
|
String[] PERMIT_PATH = permitUrlStr.split(","); |
|
|
|
httpSecurity |
|
|
|
.authorizeExchange() |
|
|
|
.pathMatchers("/api/system/demo/admin").hasAuthority(AuthorityConstant.SCOPE_ADMIN) |
|
|
|
.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("/pilot/miniprogram/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_PILOT_MP) |
|
|
|
.pathMatchers("/pilot/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_PILOT_ADMIN) |
|
|
|
.pathMatchers("/oidc/admin/**").authenticated() |
|
|
|
//.pathMatchers(PERMIT_PATH).permitAll() |
|
|
|
.anyExchange().permitAll() |