litellm/ui
mateo-berri dfa372a947
fix(sso): set cookie path and add backend logout endpoint
The token cookie was being set without an explicit path, causing it to
default to the request path (/sso/callback). When the frontend tried to
clear the cookie at / and /ui paths, it didn't match, so the cookie
persisted and users got immediately logged back in after logout.

Changes:
- Set path="/", httponly=True, samesite="lax" on all token cookies
- Add /sso/logout endpoint that properly deletes the httpOnly cookie
- Update frontend to redirect to /sso/logout instead of trying to
  clear cookies client-side (which doesn't work for httpOnly cookies)
- Add tests for the logout endpoint

https://claude.ai/code/session_01VGbXWF2hBm2gHUBWCvgLaS
2026-06-01 19:02:11 +00:00
..
litellm-dashboard fix(sso): set cookie path and add backend logout endpoint 2026-06-01 19:02:11 +00:00
Dockerfile feat: add componentized proxy deployment with gateway, backend, ui, and migrations (#27557) 2026-05-16 09:25:17 -07:00
nginx.conf feat: add componentized proxy deployment with gateway, backend, ui, and migrations (#27557) 2026-05-16 09:25:17 -07:00