mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix(proxy/_types.py): allow jwt admin to access /team/list route
This commit is contained in:
parent
ea9b4dc439
commit
c7b3193944
1 changed files with 8 additions and 1 deletions
|
|
@ -82,6 +82,7 @@ class LiteLLMRoutes(enum.Enum):
|
|||
info_routes: List = [
|
||||
"/key/info",
|
||||
"/team/info",
|
||||
"/team/list",
|
||||
"/user/info",
|
||||
"/model/info",
|
||||
"/v2/model/info",
|
||||
|
|
@ -110,6 +111,7 @@ class LiteLLMRoutes(enum.Enum):
|
|||
"/team/new",
|
||||
"/team/update",
|
||||
"/team/delete",
|
||||
"/team/list",
|
||||
"/team/info",
|
||||
"/team/block",
|
||||
"/team/unblock",
|
||||
|
|
@ -189,7 +191,12 @@ class LiteLLM_JWTAuth(LiteLLMBase):
|
|||
"spend_tracking_routes",
|
||||
"global_spend_tracking_routes",
|
||||
]
|
||||
] = ["management_routes", "spend_tracking_routes", "global_spend_tracking_routes"]
|
||||
] = [
|
||||
"management_routes",
|
||||
"spend_tracking_routes",
|
||||
"global_spend_tracking_routes",
|
||||
"info_routes",
|
||||
]
|
||||
team_jwt_scope: str = "litellm_team"
|
||||
team_id_jwt_field: str = "client_id"
|
||||
team_allowed_routes: List[
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue