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

Merge branch 'feature/oidc' into 'master'

fix controller isuue k8s

See merge request !13
parents ca2461cb ac9bc52d
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