|
@@ -25,8 +25,9 @@ public class ResourceServerConfig extends ResourceServerConfigurerAdapter {
|
|
|
@Override
|
|
|
public void configure(HttpSecurity http) throws Exception {
|
|
|
http.csrf().disable().exceptionHandling().accessDeniedHandler(baseAccessDeniedHandler).authenticationEntryPoint(baseAuthenticationEntryPoint).and()
|
|
|
- .authorizeRequests().antMatchers("/task/**").hasIpAddress("0.0.0.0/0").antMatchers("/v2/api-docs","/classGroup/highClassGroups","/code/*","/api/*").permitAll().anyRequest().authenticated()
|
|
|
- .and().httpBasic();
|
|
|
+ .authorizeRequests().antMatchers("/task/**").hasIpAddress("0.0.0.0/0")
|
|
|
+ .antMatchers("/v2/api-docs", "/classGroup/highClassGroups", "/code/*", "/api/*", "/appVersionInfo/queryByPlatform").permitAll().anyRequest()
|
|
|
+ .authenticated().and().httpBasic();
|
|
|
}
|
|
|
|
|
|
@Override
|