Skip to content

feat: add logout confirmation page#4832

Open
Lutz-Pfannenschmidt wants to merge 1 commit into
dexidp:masterfrom
Lutz-Pfannenschmidt:pr-logout-confirmation
Open

feat: add logout confirmation page#4832
Lutz-Pfannenschmidt wants to merge 1 commit into
dexidp:masterfrom
Lutz-Pfannenschmidt:pr-logout-confirmation

Conversation

@Lutz-Pfannenschmidt

Copy link
Copy Markdown

Overview

Add a logout confirmation page when no id_token_hint is provided on GET /logout.

What this PR does / why we need it

Previously, GET /logout without an id_token_hint immediately logged the user out. Any cross-site image or link <img src="/logout"> could silently terminate a user's session.
This PR adds a confirmation step: when id_token_hint is empty and the method is GET, a confirmation page is shown asking "Do you want to log out?" with a POST button. Only POST requests actually perform the logout. Logout with a valid id_token_hint is unaffected (proceeds immediately per OIDC spec).

Relates to #4560 (Implement Auth Sessions).

Special notes for your reviewer

The implementation follows the OIDC RP-Initiated Logout spec recommendation to require explicit user confirmation when the RP cannot identify the user session from the request.

Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
Signed-off-by: Lutz Pfannenschmidt <lutz.pfannenschmidt@proton.me>
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.

2 participants