mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
Revert "(UI) - Security Improvement, move to JWT Auth for Admin UI Sessions (#8995)"
This reverts commit 01a44a4e47
.
This commit is contained in:
parent
207f41cbea
commit
8d6815ce98
17 changed files with 539 additions and 1105 deletions
|
@ -1,5 +1,5 @@
|
|||
import re
|
||||
from typing import List, Optional, Set, Union
|
||||
from typing import List, Optional
|
||||
|
||||
from fastapi import HTTPException, Request, status
|
||||
|
||||
|
@ -225,9 +225,7 @@ class RouteChecks:
|
|||
return False
|
||||
|
||||
@staticmethod
|
||||
def check_route_access(
|
||||
route: str, allowed_routes: Union[List[str], Set[str]]
|
||||
) -> bool:
|
||||
def check_route_access(route: str, allowed_routes: List[str]) -> bool:
|
||||
"""
|
||||
Check if a route has access by checking both exact matches and patterns
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue