Skip to content
Snippets Groups Projects
Commit 2ead7745 authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

Bugfix 403 on auto-logout at startup

parent d89ca1d1
No related branches found
No related tags found
No related merge requests found
...@@ -225,6 +225,7 @@ public class MIPApplication extends WebSecurityConfigurerAdapter { ...@@ -225,6 +225,7 @@ public class MIPApplication extends WebSecurityConfigurerAdapter {
.anyRequest().authenticated() .anyRequest().authenticated()
.and().exceptionHandling().authenticationEntryPoint(new CustomLoginUrlAuthenticationEntryPoint("/login/hbp")) .and().exceptionHandling().authenticationEntryPoint(new CustomLoginUrlAuthenticationEntryPoint("/login/hbp"))
.and().logout().logoutSuccessUrl("/login/hbp").permitAll() .and().logout().logoutSuccessUrl("/login/hbp").permitAll()
.and().logout().permitAll()
.and().csrf().csrfTokenRepository(csrfTokenRepository()) .and().csrf().csrfTokenRepository(csrfTokenRepository())
.and().addFilterAfter(csrfHeaderFilter(), CsrfFilter.class) .and().addFilterAfter(csrfHeaderFilter(), CsrfFilter.class)
.addFilterBefore(hbpFilter, BasicAuthenticationFilter.class); .addFilterBefore(hbpFilter, BasicAuthenticationFilter.class);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment