feat: implement the Hydra logout flow#186
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Completes the login/consent/logout provider triad. Hydra's logout challenge now has a real endpoint: /logout fetches the request from the admin API, shows a confirmation naming the subject, and accepts (following Hydra's redirect through session termination) or rejects (204, session preserved). Two Playwright stories cover it end to end: confirming logout kills a remembered session so the next flow demands credentials again, and cancelling preserves it. Getting here surfaced a real integration landmine, now documented in the security config: Spring Security's built-in LogoutFilter silently intercepts /logout before any controller sees it, so it must be disabled for a Hydra logout endpoint at that path. This is also the first consumer of the testcontainers library's urlsLogout() builder option, and the test proxy gained mappings for the issuer-based logout verifier and post-logout redirects. Checks off "Log out" from the README task list.
🤖 Generated with Claude Code