Self-hosted homelab infrastructure visualizer — interactive network diagram with live status monitoring
TypeScript diagramhomelabhomelab-infrastructure-observabilitynetworkproxmox-veself-hostedzigbeezwavezwave-js
fix(auth): migrate from deprecated authlib.jose to joserfc
slmingolbb23dcb9529d
diff --git a/backend/app/api/routes/auth.py b/backend/app/api/routes/auth.pyindex 527088f..727d5d5 100644--- a/backend/app/api/routes/auth.py+++ b/backend/app/api/routes/auth.py@@ -4,8 +4,9 @@ from collections.abc import Mappingfrom typing import castfrom authlib.integrations.base_client.errors import OAuthError-from authlib.jose.errors import JoseError+from authlib.jose.errors import JoseError as _AuthlibJoseError # authlib 1.7.x still raises this; drop after 2.0from fastapi import APIRouter, Depends, HTTPException, Request, Response, status+from joserfc.errors import JoseErrorfrom pydantic import BaseModelfrom starlette.responses import RedirectResponse@@ -87,7 +88,7 @@ async def oidc_callback(request: Request) -> Response:client = get_oidc_client()try:token = await client.authorize_access_token(request)- except (OAuthError, JoseError) as exc:+ except (OAuthError, JoseError, _AuthlibJoseError) as exc:logger.warning("OIDC callback rejected: %s", exc.error)request.session.clear()raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail="OIDC authentication failed") from Nonediff --git a/backend/requirements.txt b/backend/requirements.txtindex 7837f7b..25187c5 100644--- a/backend/requirements.txt+++ b/backend/requirements.txt@@ -9,6 +9,7 @@ pydantic-settings==2.5.2PyJWT==2.13.0bcrypt==4.2.1authlib==1.7.2+joserfc>=1.6.0itsdangerous==2.2.0python-multipart==0.0.31apscheduler==3.10.4