diff --git a/infrastructure/oauth.py b/infrastructure/oauth.py index 61bdb14..cd20d0b 100644 --- a/infrastructure/oauth.py +++ b/infrastructure/oauth.py @@ -132,11 +132,10 @@ def create_oauth_blueprint(app_name: str) -> Blueprint: @bp.get("/sso-clear") @bp.get("/sso-clear/") async def sso_clear(): - """Clear local session, then redirect to next app in logout chain.""" + """Clear local session. Called via hidden iframe from account logout.""" qsession.pop(SESSION_USER_KEY, None) qsession.pop("cart_sid", None) - next_url = request.args.get("next", "/") - return redirect(next_url) + return "", 204 @bp.post("/logout") @bp.post("/logout/")