mirror of
https://github.com/tiennm99/litellm.git
synced 2026-06-18 05:28:02 +00:00
df2e1bca46
When both enable_jwt_auth and enable_oauth2_auth are True, the proxy now routes tokens based on their format: - JWT tokens (3 dot-separated parts) -> JWT auth handler - Opaque tokens -> OAuth2 auth handler This enables using JWT for human users and OAuth2 for M2M (machine) clients on the same LiteLLM instance. Previously, enabling OAuth2 would intercept all tokens on LLM API routes before JWT auth could run. When only one auth method is enabled, behavior is unchanged (backward compatible).
In total litellm runs 1000+ tests
[02/20/2025] Update:
To make it easier to contribute and map what behavior is tested,
we've started mapping the litellm directory in tests/test_litellm
This folder can only run mock tests.