Skip to content

feat(admin): add user_logout_session to log out a single user session - #723

Open
astratakis wants to merge 1 commit into
marcospereirampj:masterfrom
astratakis:feat/user-logout-session
Open

feat(admin): add user_logout_session to log out a single user session#723
astratakis wants to merge 1 commit into
marcospereirampj:masterfrom
astratakis:feat/user-logout-session

Conversation

@astratakis

Copy link
Copy Markdown

Add user_logout_session and a_user_logout_session to KeycloakAdmin to log out a single user session, complementing user_logout which terminates all of a user's sessions. The methods validate that the session belongs to the user (for online sessions) and support removing offline sessions via is_offline.

Includes sync + async tests and a docs example; verified against Keycloak 26.0.

Add user_logout_session and a_user_logout_session to KeycloakAdmin to log
out a single user session, complementing user_logout which terminates all of
a user's sessions. The methods validate that the session belongs to the user
(for online sessions) and support removing offline sessions via is_offline.
@astratakis

Copy link
Copy Markdown
Author

The red latest jobs and skipped build are pre-existing failures unrelated to this PR (they fail on master too because the latest Keycloak image has drifted from the test assertions); this change passes on all pinned versions 22.0–26.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant