auth: fix auth issues

This commit is contained in:
sbcrumb authored and sbcrumb committed 2025-10-22 21:27:03 -04:00
1 parent 4ba8db48f7
commit 5c0ba04832
2 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -72,10 +72,10 @@ class AuthSession:
class SimpleAuthMiddleware(BaseHTTPMiddleware):
"""Simple authentication middleware for web interface routes"""
def __init__(self, app, config):
def __init__(self, app, config, session_manager=None):
super().__init__(app)
self.config = config
self.session_manager = AuthSession(config.web_auth_session_timeout)
self.session_manager = session_manager or AuthSession(config.web_auth_session_timeout)
self.security = HTTPBasic()
# Routes that require authentication (web interface)