Skip to content

Rework the logout handler to fix session cleanup during OIDC logout#223

Closed
jonasbardino wants to merge 2 commits intoedgefrom
fix/rework-openid-connect-logout-for-proper-session-cleanup
Closed

Rework the logout handler to fix session cleanup during OIDC logout#223
jonasbardino wants to merge 2 commits intoedgefrom
fix/rework-openid-connect-logout-for-proper-session-cleanup

Conversation

@jonasbardino
Copy link
Copy Markdown
Contributor

@jonasbardino jonasbardino commented Apr 10, 2025

  1. Generally act in reverse order of login regarding gdp project logout, 2FA
    session clean up and local+remote IDP logout
  2. Disable the OpenID 2.0 workaround with interleaved remote IDP logout when
    using OpenID Connect

This should make logout more consistent and more importantly address the issue with missing local 2FA session termination during OpenID Connect logout we currently see in issue #222 .

 1) Generally act in reverse order of login regarding gdp project logout, 2FA
    session clean up and local+remote IDP logout
 2) Disable the OpenID 2.0 workaround with interleaved remote IDP logout when
    using OpenID Connect

This should make logout more consistent and more importantly address the issue
with missing local 2FA session termination during OpenID Connect logout we
currently see in issue 222.
@jonasbardino jonasbardino self-assigned this Apr 10, 2025
@jonasbardino jonasbardino added the bug Something isn't working label Apr 10, 2025
@jonasbardino jonasbardino added this to the OpenID Connect Support milestone Apr 10, 2025
@jonasbardino jonasbardino linked an issue Apr 10, 2025 that may be closed by this pull request
@jonasbardino jonasbardino requested a review from a team April 11, 2025 11:06
@jonasbardino
Copy link
Copy Markdown
Contributor Author

jonasbardino commented Apr 11, 2025

Tested with external OpenID Connect auth and for built-in OpenID 2.0 auth.

It looks like we will want to ask our own upstream OIDC IDP to adjust configuration so that we are allowed to redirect to the reentry page after logout.
There are a couple of other TODO points left that you may want comment on during review.

Copy link
Copy Markdown
Contributor

@Martin-Rehr Martin-Rehr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@jonasbardino jonasbardino added the follow-up pending Pending tasks to follow-up on after close label Apr 28, 2025
@jonasbardino
Copy link
Copy Markdown
Contributor Author

Merged through svn with a few TODOs to handle as follow-up. Mainly the change to use proper base URL when our own IDP allows it.
The other TODOs are nice-to-haves only.

@jonasbardino jonasbardino deleted the fix/rework-openid-connect-logout-for-proper-session-cleanup branch April 28, 2025 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working follow-up pending Pending tasks to follow-up on after close

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing 2FA session termination with OpenID Connect logout

2 participants