|
|
@@ -64,11 +64,12 @@ public class WebSecurityConfig { |
|
|
|
@Bean |
|
|
|
public SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity httpSecurity){ |
|
|
|
String[] OAUTH_PATH = oauthUrlStr.split(","); |
|
|
|
String[] HhzPermitPath = PermitPathConstant.hhzPermitUrlStr; |
|
|
|
String[] hhzPermitPath = PermitPathConstant.hhzPermitUrlStr; |
|
|
|
String[] freewayPermitPath = PermitPathConstant.freewayPermitUrlStr; |
|
|
|
httpSecurity |
|
|
|
.authorizeExchange() |
|
|
|
.pathMatchers(OAUTH_PATH).hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_DSP_MP, AuthorityConstant.SCOPE_TUOHNEG_DSP_WEB) |
|
|
|
.pathMatchers(HhzPermitPath).permitAll() |
|
|
|
.pathMatchers(hhzPermitPath).permitAll().pathMatchers(freewayPermitPath).permitAll() |
|
|
|
.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("/hhz/admin/**").hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_HHZ_ADMIN) |