From c283bed13c65dca26f5ab56b722ccd60a61f39f7 Mon Sep 17 00:00:00 2001 From: Paul Bienkowski Date: Tue, 30 Nov 2021 19:53:37 +0100 Subject: [PATCH] fix: redirect from keycloak to api, not to frontend --- api/obs/api/routes/login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/obs/api/routes/login.py b/api/obs/api/routes/login.py index fdd0c37..4411e96 100644 --- a/api/obs/api/routes/login.py +++ b/api/obs/api/routes/login.py @@ -43,7 +43,7 @@ async def login(req, next: str = None): "response_type": "code", "scope": ["openid"], "nonce": session["nonce"], - "redirect_uri": req.ctx.frontend_url + "/login/redirect", + "redirect_uri": req.ctx.api_url + "/login/redirect", "state": session["state"], }