fix(webapp): signing out is a POST; GET /auth/logout ends nothing (#1163) #1165
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/1163-logout-is-a-post"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #1163 (the logout piece; the other GET routes that write stay open there).
GET /auth/logoutended the session, so following any link to it logged the reader out.POST /auth/logoutends the session and clears the cookie, answering 200{"redirect": "<APP_URL>/login"}; the frontend navigates. There was no OIDC end-session redirect to preserve.GET /auth/logoutnow only redirects to/. It touches no session.SameSite=Lax, the same as every other cookie-authenticated write; the backend has no CSRF token or Origin check, and none is added here./auth/is network-only and Workbox routes match GET).No bot API change, no migration.
Verified
On
docker-test:test_auth_logout.py(new),test_auth_routes.py,test_auth_callback.py(28 passed); ruff; changelog and version checks; frontend lint; vitest forauth.test.js,AppFrame.test.jsx,Profile.test.jsx,AccountMenu(168 passed).Not run: the journeys (their
signOutfixture now POSTs) and the full backend suite; left to CI.🤖 Generated with Claude Code