litellm/tests/test_litellm/proxy/auth
devin-ai-integration[bot] 25ebb9458c
fix(proxy): surface a database outage from the user read as 503 no_db_connection (#42399)
get_user_object wrapped every failed read, a refused connection included, in
ValueError("User doesn't exist in db ..."), so JWT callers got a 401 naming a
missing user while Postgres was down and virtual-key callers got 503
no_db_connection for the same outage. A connection or transport error now
propagates as-is and the auth exception mapper answers 503 no_db_connection;
a genuinely missing row and query-level errors still answer 401.

The MCP auth and token-exchange docstrings and the exception-chain helper's
docstring described the old wrap and are updated to the new contract.

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
2026-09-21 20:52:41 -07:00
..
test_admin_viewer_handler_access.py
test_auth_checks.py fix(proxy): surface a database outage from the user read as 503 no_db_connection (#42399) 2026-09-21 20:52:41 -07:00
test_auth_exception_handler.py fix(proxy): return 422 instead of 429 for BudgetExceededError 2026-09-20 06:00:06 +00:00
test_auth_hot_path_network_requests.py
test_auth_object_prefetch.py
test_auth_utils.py
test_banned_params_extra_body.py
test_cli_auth.py
test_custom_auth_end_user_budget.py fix(proxy): keep custom-auth end-user caps under a key default budget 2026-09-17 20:31:26 +00:00
test_fallback_budget.py
test_fallback_model_access.py
test_handle_jwt.py fix(auth): fail closed when the JWT single-team fallback or compact editor membership read hits a DB outage (#42344) 2026-09-21 20:04:30 -07:00
test_info_routes.py
test_litellm_license.py fix(license): let a wildcard allowed_features license grant the auto_router feature 2026-09-17 15:08:09 -07:00
test_login_utils.py feat(auth): only allow password-login dashboard sessions to call /user/password/change 2026-09-21 22:22:12 +00:00
test_master_key_boot_check.py refactor(proxy): rename the local development override to dangerously_permit_weak_or_unset_master_key so the name says exactly what it permits 2026-09-19 18:53:14 -07:00
test_mcp_ip_filtering.py
test_model_access_group_budgets.py
test_model_checks.py fix(proxy): detach stored credential when model editor selects None (LIT-7597) 2026-09-21 19:22:57 +00:00
test_model_checks_fallbacks.py
test_multi_budget_windows.py fix(proxy): return 422 instead of 429 for BudgetExceededError 2026-09-20 06:00:06 +00:00
test_network.py
test_oauth2_proxy_hook.py
test_object_permission_loading.py
test_onboarding.py feat(auth): breached password detection, self-service change-password and forced password reset 2026-09-21 18:48:35 +00:00
test_organization_budget_enforcement.py
test_password_hashing.py
test_password_policy.py feat(auth): breached password detection, self-service change-password and forced password reset 2026-09-21 18:48:35 +00:00
test_resolvers_exceptions.py
test_resolvers_grants.py test(auth): model the membership row read in the fakes the loader now reaches 2026-09-19 16:32:22 -07:00
test_resolvers_models.py
test_resolvers_seam.py
test_resolvers_store.py
test_route_checks.py Merge pull request #42346 from BerriAI/litellm_jwt_team_allowed_routes_passthrough_grant 2026-09-21 16:38:05 -07:00
test_router_override_fallback_auth.py
test_team_grants.py
test_team_member_budget.py
test_unmapped_model_budget_enforcement.py
test_user_api_key_auth.py fix(proxy): release unclaimed budget reservations at request end (#42304) 2026-09-21 19:51:12 -07:00