Skip to content

Clear transient sign-in handshake cookies on logout - #63

Merged
einari merged 1 commit into
mainfrom
fix/clear-transient-cookies-on-logout
Jul 24, 2026
Merged

Clear transient sign-in handshake cookies on logout#63
einari merged 1 commit into
mainfrom
fix/clear-transient-cookies-on-logout

Conversation

@einari

@einari einari commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Fixed

  • Logout now clears the transient OAuth/OIDC correlation and nonce cookies (.AspNetCore.Correlation.*, .AspNetCore.OpenIdConnect.Nonce.*) the sign-in handshake leaves behind on abandoned attempts, so signing out no longer leaves them accumulating in the browser. These cookies are now kept at the root path so the browser sends them on the logout request.

🤖 Generated with Claude Code

The OAuth/OIDC middleware writes a correlation cookie (and, for OIDC, a
nonce cookie) per sign-in handshake. An abandoned handshake leaves one
behind, so they accumulate in the browser and were never removed by
logout, which cleared only the session and identity cookies.

Keep these cookies at the root path so the browser sends them on the
logout request, then delete every cookie matching their well-known
prefixes when signing out.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@einari einari added the patch label Jul 24, 2026
@einari
einari merged commit 69d439a into main Jul 24, 2026
3 checks passed
@einari
einari deleted the fix/clear-transient-cookies-on-logout branch July 24, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant