Update litellm/proxy/ui_crud_endpoints/proxy_setting_endpoints.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
mubashir1osmani 2026-07-07 19:47:23 -04:00 committed by GitHub
parent ce4fd4e0e8
commit 2d2e7464ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -780,7 +780,9 @@ async def get_sso_settings():
# Build SSO config from database values, falling back to the environment so
# env-configured SSO still populates the UI. Stored DB values win on overlap.
env_fallback = {
field: os.environ[env_var] for field, env_var in _SSO_FIELD_TO_ENV_VAR.items() if os.environ.get(env_var)
field: val
for field, env_var in _SSO_FIELD_TO_ENV_VAR.items()
if (val := os.environ.get(env_var))
}
merged_sso_settings = {**env_fallback, **decrypted_sso_settings_dict}