mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
fix(ui_sso): propagate ProxyException in upsert_sso_user and pass prisma_client
upsert_sso_user had the same bare except-Exception swallowing pattern as get_user_info_from_db — the 403 from _enforce_free_sso_user_limit was caught and discarded. Also passes prisma_client through to insert_sso_user so the limit check actually runs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
689e9d862f
commit
f0f0cb71f0
1 changed files with 3 additions and 0 deletions
|
|
@ -3014,8 +3014,11 @@ class SSOAuthenticationHandler:
|
|||
user_info = await insert_sso_user(
|
||||
result_openid=result,
|
||||
user_defined_values=user_defined_values,
|
||||
prisma_client=prisma_client,
|
||||
)
|
||||
return user_info
|
||||
except ProxyException:
|
||||
raise
|
||||
except Exception as e:
|
||||
verbose_proxy_logger.exception(
|
||||
f"Error upserting SSO user into LiteLLM DB: {e}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue