Commit graph

12 commits

Author SHA1 Message Date
Ishaan Jaff
7a367bddc4 reset general settings post test 2024-09-03 15:33:22 -07:00
Ishaan Jaff
bb9ee4a068 add test for allowed routes 2024-09-03 14:17:53 -07:00
Ishaan Jaff
5050dc0fe6 add test_user_api_key_auth_fails_with_prohibited_params 2024-08-28 14:11:56 -07:00
Ishaan Jaff
acb31c0acd return detailed error message on check_valid_ip 2024-08-13 21:29:21 -07:00
Ishaan Jaff
7d439865e7 add test for test_check_valid_ip_sent_with_x_forwarded_for 2024-08-13 15:54:53 -07:00
Krrish Dholakia
86a3dba1bf refactor(user_api_key_auth.py): refactor to replace user_id_information list with pydantic user_obj
Allows using the 'get_user_object' function in user_api_key_auth, keeping it consistent across jwt-auth and key-auth
2024-08-07 15:33:55 -07:00
Krrish Dholakia
57a730095c fix(user_api_key_auth.py): respect team budgets over user budget, if key belongs to team
Closes https://github.com/BerriAI/litellm/issues/5097
2024-08-07 14:32:27 -07:00
Krrish Dholakia
8fea55ffd7 fix(user_api_key_auth.py): handle older user_role's
Fixes issue where older user_role's (e.g. app_user) weren't being recognized. + Adds testing for it
2024-08-05 08:57:06 -07:00
Krrish Dholakia
f76a4bab49 fix(user_api_key_cache): fix check to not raise error if team object is missing 2024-07-30 18:25:04 -07:00
Krrish Dholakia
b92af48854 fix(user_api_key_auth.py): update team values in token cache if refreshed more recently 2024-07-19 17:35:59 -07:00
Krrish Dholakia
548b2fcf4b fix(user_api_key_auth.py): update valid token cache with updated team object cache 2024-07-19 17:06:49 -07:00
Krrish Dholakia
f982e93d24 feat(user_api_key_auth.py): allow restricting calls by IP address
Allows admin to restrict which IP addresses can make calls to the proxy
2024-07-08 15:58:15 -07:00