Commit e84dc6a0 authored by Meghnath Saha's avatar Meghnath Saha
Browse files

disable-spring-web-security-205

parent ac64cbf9
Pipeline #80313 failed with stages
in 32 minutes and 20 seconds
......@@ -15,20 +15,20 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.csrf().disable()
.authorizeRequests()
.antMatchers("/", "/index.html",
"/liveness_check",
"/readiness_check",
"/index-worker", "/_dps/task-handlers", "/_dps/task-handlers/**",
"/reindex",
"/v2/api-docs",
"/swagger-resources/**",
"/configuration/security",
"/swagger",
"/info",
"/swagger-ui.html",
"/webjars/**").permitAll()
.anyRequest().anonymous();
.csrf().disable();
// .authorizeRequests()
// .antMatchers("/", "/index.html",
// "/liveness_check",
// "/readiness_check",
// "/index-worker", "/_dps/task-handlers", "/_dps/task-handlers/**",
// "/reindex",
// "/v2/api-docs",
// "/swagger-resources/**",
// "/configuration/security",
// "/swagger",
// "/info",
// "/swagger-ui.html",
// "/webjars/**").permitAll()
// .anyRequest().anonymous();
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment