Skip to content
Snippets Groups Projects
Commit ac9bc52d authored by Baptiste Toulemonde's avatar Baptiste Toulemonde
Browse files

fix controller isuue k8s

parent 4e6507e7
No related branches found
No related tags found
1 merge request!13fix controller isuue k8s
......@@ -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()
......
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