-
Notifications
You must be signed in to change notification settings - Fork 6k
Add RequestedUrlRedirectInvalidSessionStrategy implemention of InvalidSessionStrategy #9632
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
Add RequestedUrlRedirectInvalidSessionStrategy implemention of InvalidSessionStrategy #9632
Conversation
…dSessionStrategy Performs a redirect to the original request URL when an invalid requested session is detected. In effect, when a user's session times out, the user is redirected to URL they originally requested instead of some fixed URL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Overall, I understand and agree with the proposal. I've provided feedback inline.
...ava/org/springframework/security/web/session/RequestedUrlRedirectInvalidSessionStrategy.java
Outdated
Show resolved
Hide resolved
...ava/org/springframework/security/web/session/RequestedUrlRedirectInvalidSessionStrategy.java
Outdated
Show resolved
Hide resolved
...ava/org/springframework/security/web/session/RequestedUrlRedirectInvalidSessionStrategy.java
Show resolved
Hide resolved
...ava/org/springframework/security/web/session/RequestedUrlRedirectInvalidSessionStrategy.java
Outdated
Show resolved
Hide resolved
Thank you for the review and feedback - I've addressed all of the feedback provided, so I think this PR is ready for another review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. I've scheduled it for 5.6.0-M1
Thanks for the Pull Request! This is now merged into main 😄 |
Performs a redirect to the original request URL when an invalid requested session is detected.
In effect, when a user's session times out, the user is redirected to URL they originally requested instead of some fixed URL.
I have a number of projects using this implementation, so I suspect it's useful to the wide Spring Security world.
I'm hoping you can give a quick review of this idea. If it seems like it will be acceptable to Spring Security, I'll update this PR with tests.