Closed JohnnyMoonlight closed 3 years ago
Hey,
in src/main/java/com/digitalsanctuary/spring/user/util/WebSecurityConfig.java , there might be a redundant configuration.
src/main/java/com/digitalsanctuary/spring/user/util/WebSecurityConfig.java
Line 145 ff says:
else if (DEFAULT_ACTION_ALLOW.equals(getDefaultAction())) { http.authorizeRequests().antMatchers(protectedURIsArray).authenticated().antMatchers("/**").permitAll() .and().formLogin().loginPage(loginPageURI).loginProcessingUrl(loginActionURI) .successHandler(loginSuccessService).successHandler(loginSuccessService).and().logout() .logoutUrl(logoutActionURI).invalidateHttpSession(true).logoutSuccessHandler(logoutSuccessService) .deleteCookies("JSESSIONID").permitAll();
successHandler() is called twice. I don't know, if on purpose or not.
Cheers!
Branch issue-5-Redundant_configmethod_in_WebSecurityConfig created!
Good catch! I will double check and then fix! Thank you @JohnnyMoonlight !!
Hey,
in
src/main/java/com/digitalsanctuary/spring/user/util/WebSecurityConfig.java
, there might be a redundant configuration.Line 145 ff says:
successHandler() is called twice. I don't know, if on purpose or not.
Cheers!