litellm/tests/proxy_admin_ui_tests
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
..
test-results Require auth for all dashboard pages (#10229) 2025-04-23 07:08:25 -07:00
ui_unit_tests chore(deps): refresh dependency locks 2026-05-04 11:36:18 -07:00
.npmrc [Fix] CI/Tooling: Correct min-release-age value in .npmrc files 2026-04-29 19:49:27 -07:00
conftest.py LiteLLM Minor Fixes & Improvements (11/23/2024) (#6870) 2024-11-23 15:17:40 +05:30
test_key_management.py fix(guardrails): persist disable_global_guardrails on keys (#29233) 2026-05-28 21:19:04 -07:00
test_role_based_access.py [Fix] Restrict /global/spend/* routes to admin roles 2026-04-24 22:46:07 -07:00
test_route_check_unit_tests.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_sso_sign_in.py fix(sso): set cookie path and add backend logout endpoint 2026-06-01 19:02:11 +00:00
test_usage_endpoints.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00