mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
Fix SSO user login - invalid token error (#10298)
* 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:
parent
21e27b13e6
commit
0f9ebc23a5
7 changed files with 212 additions and 49 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue