Format Python backend sources
This commit is contained in:
1 parent
2d8f138215
commit
8bbaf3c70b
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
|
||||
|
||||
Reference in new issue
Block a user