Skip to content
Snippets Groups Projects

fix controller isuue k8s

Merged Baptiste Toulemonde requested to merge feature/oidc into master
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
@@ -64,10 +64,11 @@ public class SmartHarvesterSecurityConfiguration extends WebSecurityConfigurerAd
@Override
protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable().cors().and().authorizeRequests().antMatchers("/oauth2/**", "/login**", "/smart-harvester/**", "/harvester/api/catalogs","/resources/**", "/public/error/css/**", "/smart-docs/**").permitAll()
http.csrf().disable().cors().and().authorizeRequests().antMatchers("/harvester/oauth2/**","/oauth2/**", "/login**", "/smart-harvester/**", "/harvester/api/catalogs","/resources/**", "/public/error/css/**", "/smart-docs/**").permitAll()
.anyRequest().authenticated()
.and()
.oauth2Login().authorizationEndpoint().authorizationRequestRepository(new InMemoryRequestRepository())
.oauth2Login().authorizationEndpoint().baseUri("/harvester/oauth2/authorization")
.authorizationRequestRepository(new InMemoryRequestRepository())
.and()
.successHandler(this::successHandler)
.and()
Loading