Sync shared snapshot from 8bbaf3c

This commit is contained in:
Gabriel20xx committed 2026-09-18 13:12:21 +02:00
1 parent 346f6f839f
commit 55b224bc48
4 files changed
+36 -10

No files matched your search

@@ -574,7 +574,10 @@ def build_auth_router(
store: ProxyStore = Depends(get_store), # noqa: B008
) -> dict[str, bool]:
nonlocal login_required_override
if not configured_internal_secret or request.headers.get("X-Internal-Auth") != configured_internal_secret:
if (
not configured_internal_secret
or request.headers.get("X-Internal-Auth") != configured_internal_secret
):
raise HTTPException(status_code=401, detail="internal service authentication required")
await store.set_login_required(req.loginRequired)
login_required_override = req.loginRequired