diff --git a/src/main/java/com/smartharvester/config/SmartHarvesterSecurityConfiguration.java b/src/main/java/com/smartharvester/config/SmartHarvesterSecurityConfiguration.java index cf1a8a2f5a22a30f38998f50d3451ae3f08c1edb..e9d3a71ebf3631c4833bbb2bda6e7b46f123225c 100644 --- a/src/main/java/com/smartharvester/config/SmartHarvesterSecurityConfiguration.java +++ b/src/main/java/com/smartharvester/config/SmartHarvesterSecurityConfiguration.java @@ -59,7 +59,7 @@ public class SmartHarvesterSecurityConfiguration extends WebSecurityConfigurerAd .authorizeRequests().antMatchers("/resources/**", "/public/error/css/**").permitAll() .antMatchers("/harvester/api/**").authenticated() .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); }