address greptile review feedback (greploop iteration 16)

This commit is contained in:
Ishaan Jaffer 2026-03-05 17:20:40 -08:00
parent 8b491790b6
commit 63de6d0ee0

View file

@ -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",