-
Notifications
You must be signed in to change notification settings - Fork 7.7k
UserSessionProvider.removeUserSessions now removes all user sessions … #34350
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
UserSessionProvider.removeUserSessions now removes all user sessions … #34350
Conversation
IMHO this should be listed in the upgrading guide so people have a chance to learn about this changed behavior. |
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.
testsuite/model/src/test/java/org/keycloak/testsuite/model/session/SessionTimeoutsTest.java
Outdated
Show resolved
Hide resolved
I'm not entirely sure we should move on with this - looking at the code, the general assumption of implementations for this method is that only regular sessions are to be removed. We should perhaps keep it that way and introduce a Also, there's no method to retrieve all offline sessions of a realm (only by client or user), so I can't even have a naive default impl for this So bottom line is that I haven't found a good way to introduce a default method for removing all sessions without breaking API compatibility. |
I don't think we need to worry about backward compatibility in this case. Effectively, sessions are invalidated already we are just making sure they are removed despite their type (offline vs online). But still, a note in release notes make sense. |
I've sent another PR with a slightly different strategy - #34449 It should preserve the API compatibility and it also the semantics of the existing |
4ea5e7b
to
3a8b6ec
Compare
badf042
to
41646de
Compare
…(both regular and offline) Closes keycloak#31359 Signed-off-by: Stefan Guilhen <sguilhen@redhat.com>
7f57c85
to
7b69c0a
Compare
…(both online and offline)
Closes #31359