Skip to content

Document and test gateway logout scope - #7

Merged
codeandsolder merged 6 commits into
mainfrom
docs/logout-session-contract
Sep 4, 2026
Merged

codeandsolder merged 6 commits into
mainfrom
docs/logout-session-contract

Conversation

@codeandsolder

Copy link
Copy Markdown
Owner

Pins and documents the gateway's intentionally asymmetric logout/session behavior instead of leaving it implicit.

Changes:

  • expand the existing gateway logout E2E into a two-login regression
  • prove /auth/logout flushes the exact cookie session used for logout
  • prove another cookie session for the same subject remains authenticated
  • prove refresh-token revocation is subject-wide, so refresh credentials from both logins are rejected after one /auth/logout
  • document that already-issued access JWTs remain valid until exp without a separate revocation mechanism
  • distinguish /session/logout (current cookie session only) from /auth/logout (subject-wide refresh revocation + current cookie session)
  • document tower_sessions::MemoryStore as a deliberately process-local demo backend: restarts invalidate sessions and replicas do not share them
  • update handler/session docs, README, and canonical SKILL.md together

The temporary write-capable helper workflow used for exact large-file edits was removed before this PR was opened.

Kept draft until the normal full CI matrix validates the final tree. Intentionally not auto-merged.

@codeandsolder
codeandsolder marked this pull request as ready for review September 4, 2026 23:15
@codeandsolder
codeandsolder merged commit 8e71530 into main Sep 4, 2026
12 checks passed
@codeandsolder-git-wrangler
codeandsolder-git-wrangler Bot deleted the docs/logout-session-contract branch September 29, 2026 04:13
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