mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
* fix(auth): route JWT default-team into memberships instead of the create payload JWT auto-provisioning (get_user_object with user_id_upsert) merged litellm.default_internal_user_params verbatim into the Prisma user create, including a teams key. When a default team is configured through the Admin UI it is stored as a list of NewUserRequestTeam objects, but the user table's teams column is String[], so the create raised a Prisma type error and every JWT-authenticated request 401'd with the user never created. Mirror the /user/new path: strip teams (and available_teams) out of the create payload, then route the configured default team through check_if_default_team_set / add_new_user_to_default_team so provisioned users get real membership rows. Reuse the synthetic PROXY_ADMIN UserAPIKeyAuth pattern already used by the team-upsert path to satisfy the membership permission gate, and import the helpers lazily to avoid the auth_checks <-> internal_user_endpoints import cycle. * fix(auth): propagate max_budget_in_team when adding users to default teams * fix: use pipe union instead of Optional for UP045 budget |
||
|---|---|---|
| .. | ||
| test_admin_viewer_handler_access.py | ||
| test_auth_checks.py | ||
| test_auth_exception_handler.py | ||
| test_auth_hot_path_network_requests.py | ||
| test_auth_utils.py | ||
| test_banned_params_extra_body.py | ||
| test_cli_auth.py | ||
| test_custom_auth_end_user_budget.py | ||
| test_handle_jwt.py | ||
| test_info_routes.py | ||
| test_litellm_license.py | ||
| test_login_utils.py | ||
| test_mcp_ip_filtering.py | ||
| test_model_checks.py | ||
| test_model_checks_fallbacks.py | ||
| test_multi_budget_windows.py | ||
| test_network.py | ||
| test_oauth2_proxy_hook.py | ||
| test_object_permission_loading.py | ||
| test_onboarding.py | ||
| test_organization_budget_enforcement.py | ||
| test_password_hashing.py | ||
| test_resolvers_exceptions.py | ||
| test_resolvers_models.py | ||
| test_resolvers_seam.py | ||
| test_resolvers_store.py | ||
| test_route_checks.py | ||
| test_router_override_fallback_auth.py | ||
| test_team_member_budget.py | ||
| test_unmapped_model_budget_enforcement.py | ||
| test_user_api_key_auth.py | ||