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

fix logout path

parent c3038d3d
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,7 @@ public class SmartHarvesterSecurityConfiguration extends WebSecurityConfigurerAd ...@@ -59,7 +59,7 @@ public class SmartHarvesterSecurityConfiguration extends WebSecurityConfigurerAd
.authorizeRequests().antMatchers("/resources/**", "/public/error/css/**").permitAll() .authorizeRequests().antMatchers("/resources/**", "/public/error/css/**").permitAll()
.antMatchers("/harvester/api/**").authenticated() .antMatchers("/harvester/api/**").authenticated()
.antMatchers("/public/error/css/**").permitAll().and() .antMatchers("/public/error/css/**").permitAll().and()
.logout().logoutSuccessHandler((req, resp, auth) -> resp.setStatus(HttpServletResponse.SC_OK)); .logout().logoutUrl("/harvester/auth/logout").logoutSuccessHandler((req, resp, auth) -> resp.setStatus(HttpServletResponse.SC_OK));
http.addFilterBefore(authenticationJwtTokenFilter(), UsernamePasswordAuthenticationFilter.class); http.addFilterBefore(authenticationJwtTokenFilter(), UsernamePasswordAuthenticationFilter.class);
} }
......
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