Commit 32ea77d0 authored by Meghnath Saha's avatar Meghnath Saha
Browse files

Disabling Spring Web Security for ODI Services

parent da658b8f
Pipeline #64298 canceled with stages
in 9 minutes and 14 seconds
...@@ -16,15 +16,15 @@ import org.springframework.core.annotation.Order; ...@@ -16,15 +16,15 @@ import org.springframework.core.annotation.Order;
public class BasicAuthSecurityConfig extends WebSecurityConfigurerAdapter { public class BasicAuthSecurityConfig extends WebSecurityConfigurerAdapter {
@Override @Override
protected void configure(HttpSecurity http) throws Exception { protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable() http.csrf().disable();
.authorizeRequests() // .authorizeRequests()
.antMatchers("/test/**","/v1/api-docs", // .antMatchers("/test/**","/v1/api-docs",
"/configuration/ui", // "/configuration/ui",
"/swagger-resources/**", // "/swagger-resources/**",
"/configuration/security", // "/configuration/security",
"/swagger-ui.html", // "/swagger-ui.html",
"/info", // "/info",
"/webjars/**").permitAll() // "/webjars/**").permitAll()
.anyRequest().authenticated().and().oauth2ResourceServer().jwt(); // .anyRequest().authenticated().and().oauth2ResourceServer().jwt();
} }
} }
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