Route auth to federation: login_url default, logout URL, federation_url global

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-23 08:41:18 +00:00
parent 5bed4a6c78
commit bd18d0befc
3 changed files with 5 additions and 4 deletions

View File

@@ -66,9 +66,9 @@ def market_product_url(product_slug: str, suffix: str = "", market_place=None) -
def login_url(next_url: str = "") -> str:
# Auth lives in blog for now. Set AUTH_APP=federation to switch.
# Auth lives in federation. Set AUTH_APP to override.
from quart import session as qsession
auth_app = os.getenv("AUTH_APP", "blog")
auth_app = os.getenv("AUTH_APP", "federation")
base = app_url(auth_app, "/auth/login/")
params: list[str] = []
if next_url: