|
|
@@ -67,12 +67,14 @@ public class WebSecurityConfig { |
|
|
|
String[] hhzPermitPath = PermitPathConstant.hhzPermitUrlStr; |
|
|
|
String[] freewayPermitPath = PermitPathConstant.freewayPermitUrlStr; |
|
|
|
String[] waterwayPermitPath = PermitPathConstant.waterwayPermitUrlStr; |
|
|
|
String[] dspInspectionPermitUrlStr = PermitPathConstant.dspInspectionPermitUrlStr; |
|
|
|
httpSecurity |
|
|
|
.authorizeExchange() |
|
|
|
.pathMatchers(OAUTH_PATH).hasAnyAuthority(AuthorityConstant.SCOPE_ADMIN, AuthorityConstant.SCOPE_TUOHNEG_DSP_MP, AuthorityConstant.SCOPE_TUOHNEG_DSP_WEB) |
|
|
|
.pathMatchers(hhzPermitPath).permitAll() |
|
|
|
.pathMatchers(freewayPermitPath).permitAll() |
|
|
|
.pathMatchers(waterwayPermitPath).permitAll() |
|
|
|
.pathMatchers(dspInspectionPermitUrlStr).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) |