Skip to content
Snippets Groups Projects
Commit 118e293c authored by Bhushan Rade's avatar Bhushan Rade
Browse files

Merge branch 'disable-spring-web-security-205' into 'master'

disabled spring web security for IBM

See merge request !175
parents e3d7847e ac39c3b5
No related branches found
No related tags found
1 merge request!175disabled spring web security for IBM
Pipeline #80368 passed with warnings
......@@ -15,17 +15,17 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.csrf().disable()
.authorizeRequests()
.antMatchers("/_ah/liveness_check","/_ah/readiness_check",
"/v2/api-docs",
"/configuration/ui",
"/swagger-resources/**",
"/actuator/**",
"/configuration/security",
"/swagger-ui.html",
"/info",
"/webjars/**").permitAll()
.anyRequest().authenticated().and().oauth2ResourceServer().jwt();
.csrf().disable();
// .authorizeRequests()
// .antMatchers("/_ah/liveness_check","/_ah/readiness_check",
// "/v2/api-docs",
// "/configuration/ui",
// "/swagger-resources/**",
// "/actuator/**",
// "/configuration/security",
// "/swagger-ui.html",
// "/info",
// "/webjars/**").permitAll()
// .anyRequest().authenticated().and().oauth2ResourceServer().jwt();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment