Revert "(UI) - Security Improvement, move to JWT Auth for Admin UI Sessions (#8995)"

This reverts commit 01a44a4e47.
This commit is contained in:
Ishaan Jaff 2025-03-05 08:49:20 -08:00
parent 207f41cbea
commit 8d6815ce98
17 changed files with 539 additions and 1105 deletions

View file

@ -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