logoutSuccessUrl in DefaultLoginPageGeneratingFilter is not set #9973
Labels
in: web
An issue in web modules (web, webmvc)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Describe the bug
Relogin after logout leads to an error (404).
To Reproduce
Expected behavior
Seeing the welcome page after 2nd login.
Sample
https://github.com/comlinegmbh/spring-security-missing-default-url-demo
Woraround
Please take a look in DemoApplication.java. If you remove the comments in line 27 (@PostConstruct), the relogin succeded.
Imo the standard configuration should take care of the logoutSuccessUrl.
Maybe directly in the DefaultLoginPageGeneratingFilter (see init() Methods) or by calling setLogoutSuccessUrl in FormLoginConfigurer.initDefaultLoginFilter?
The text was updated successfully, but these errors were encountered: