Fix SSO user login - invalid token error (#10298)
All checks were successful
Read Version from pyproject.toml / read-version (push) Successful in 18s
Helm unit test / unit-test (push) Successful in 24s

* fix(ui_sso.py): add info statements for litellm sso

* fix(ui_sso.py): use correct user id on existing user sso login

* refactor(ui_sso.py): break down function for easier testing

* test(test_ui_sso.py): add unit testing

* fix(ui_sso.py): fix passing user id from openid

* fix(ui_sso.py): fix returning user email

* fix(ui_sso.py): pass sso id on new sso user create

better tracking of when user is an sso user

* fix(ui_sso.py): don't auto create key for sso user

* docs(internal_user_endpoints.py): add 'sso_user_id' docstring
This commit is contained in:
Krish Dholakia 2025-04-25 09:48:54 -07:00 committed by GitHub
parent 21e27b13e6
commit 0f9ebc23a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 212 additions and 49 deletions

View file

@ -202,6 +202,7 @@ async def new_user(
- team_id: Optional[str] - [DEPRECATED PARAM] The team id of the user. Default is None.
- duration: Optional[str] - Duration for the key auto-created on `/user/new`. Default is None.
- key_alias: Optional[str] - Alias for the key auto-created on `/user/new`. Default is None.
- sso_user_id: Optional[str] - The id of the user in the SSO provider.
Returns:
- key: (str) The generated api key for the user