New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spring Security change defaultSuccessUrl not working in vaadin 21 #867
Comments
Anonymous access to vaadin views, excepted the login page, also not working:
Anonymous access to /newstool/unregister which is a vaadin view is not possible, even if you add the @AnonymousAllowed annotation to the view. Florian |
Tested by:
End result: redirected to http://localhost:8080/foo However, when you log out there is a logout success url set to "/" so after logout, the browser tries to access "/". Then you are redirected to /login and after login you end up on the page you tried to reach, i.e. /. |
This does not work with |
@florianrhomberg Would the following configuration work for you case:
Note that in this case the redirect URL will always be used, even if the path to a secured view is entered in to the pre-login-redirect URL. E.g., |
Closed due to no response from author. If this is still an issue, please reopen the ticket and provide more information. |
After a successfully form login the default successUrl is always "", no matter which URL is configured as defaulSuccessUrl or successUrl.
Try the following code in your security configuration class to repriduce the issue:
It does not matters if you put the configuration before or after super.configure.
Refrence to stackoverflow: https://stackoverflow.com/questions/68662331/change-default-success-url-in-spring-security-using-vaadin-21
Florian
The text was updated successfully, but these errors were encountered: