litellm-mirror/litellm/proxy/management_endpoints
Ishaan Jaff 01a44a4e47
(UI) - Security Improvement, move to JWT Auth for Admin UI Sessions (#8995)
* (UI) - Improvements to session handling logic  (#8970)

* add cookieUtils

* use utils for clearing cookies

* on logout use clearTokenCookies

* ui use correct clearTokenCookies

* navbar show userEmail on UserID page

* add timestamp on token cookie

* update generate_authenticated_redirect_response

* use common getAuthToken

* fix clearTokenCookies

* fixes for get auth token

* fix invitation link sign in logic

* Revert "fix invitation link sign in logic"

This reverts commit 30e5308cb3.

* fix getAuthToken

* update setAuthToken

* fix ui session handling

* fix ui session handler

* bug fix stop generating LiteLLM Virtual keys for access

* working JWT insert into cookies

* use central place to build UI JWT token

* add _validate_ui_token

* fix ui session handler

* fix fetchWithCredentials

* check allowed routes for ui session tokens

* expose validate_session endpoint

* validate session endpoint

* call sso/session/validate

* getUISessionDetails

* ui move to getUISessionDetails

* /sso/session/validate

* fix cookie utils

* use getUISessionDetails

* use ui_session_id

* "/spend/logs/ui" in spend_tracking_routes

* working sign in JWT flow for proxy admin

* allow proxy admin to access ui routes

* use check_route_access

* update types

* update login method

* fixes to ui session handler

* working flow for admin and internal users

* fixes for invite links

* use JWTs for SSO sign in

* fix /invitation/new flow

* fix code quality checks

* fix _get_ui_session_token_from_cookies

* /organization/list

* ui sso sign in

* TestUISessionHandler

* TestUISessionHandler
2025-03-04 21:48:23 -08:00
..
budget_management_endpoints.py Support budget/rate limit tiers for keys (#7429) 2024-12-26 19:05:27 -08:00
common_utils.py Litellm stable UI 02 17 2025 p1 (#8599) 2025-02-17 17:55:05 -08:00
customer_endpoints.py Support budget/rate limit tiers for keys (#7429) 2024-12-26 19:05:27 -08:00
internal_user_endpoints.py UI - Allow admin to control default model access for internal users (#8912) 2025-02-28 23:23:03 -08:00
key_management_endpoints.py Add created_by and updated_by fields to Keys table (#8885) 2025-02-27 18:12:58 -08:00
model_management_endpoints.py (Polish/Fixes) - Fixes for Adding Team Specific Models (#8645) 2025-02-18 21:11:57 -08:00
organization_endpoints.py Add all /key/generate api params to UI + add metadata fields on team AND org add/update (#8667) 2025-02-19 21:13:06 -08:00
sso_helper_utils.py (code quality) run ruff rule to ban unused imports (#7313) 2024-12-19 12:33:42 -08:00
team_callback_endpoints.py (code quality) run ruff rule to ban unused imports (#7313) 2024-12-19 12:33:42 -08:00
team_endpoints.py fix(team_endpoints.py): allow team member to view team info (#8644) 2025-02-18 22:28:57 -08:00
types.py Litellm dev 01 08 2025 p1 (#7640) 2025-01-08 22:08:20 -08:00
ui_sso.py (UI) - Security Improvement, move to JWT Auth for Admin UI Sessions (#8995) 2025-03-04 21:48:23 -08:00