mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
address greptile review feedback (greploop iteration 16)
This commit is contained in:
parent
8b491790b6
commit
63de6d0ee0
1 changed files with 6 additions and 0 deletions
|
|
@ -2765,6 +2765,12 @@ class SSOAuthenticationHandler:
|
|||
if resp.status_code == 200:
|
||||
try:
|
||||
userinfo = resp.json()
|
||||
if not userinfo:
|
||||
verbose_proxy_logger.warning(
|
||||
"Userinfo endpoint returned an empty response ({}). "
|
||||
"The session will have no identity claims. "
|
||||
"Check your provider's userinfo endpoint configuration.",
|
||||
)
|
||||
except Exception as json_err:
|
||||
verbose_proxy_logger.warning(
|
||||
"Userinfo endpoint returned non-JSON response (status 200): %s",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue