From 96e15c786fd6ba6aaef752961c1bec6a6c900c1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20B=C3=B6ttcher?= <c.boettcher@fz-juelich.de> Date: Wed, 23 Nov 2022 16:08:49 +0100 Subject: [PATCH] remove localhost redirect --- apiserver/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/main.py b/apiserver/main.py index 25da3af..89546a2 100644 --- a/apiserver/main.py +++ b/apiserver/main.py @@ -140,7 +140,7 @@ async def keycloak_token(request: Request): log.debug("Externally authenticed User: '%s' requested /keycloak_token", datacat_user.username) # set token in cookie, this can then be extractet via the frontend javascript - response = RedirectResponse("http://localhost:9000/login.html?external_auth=True") + response = RedirectResponse("/login.html?external_auth=True") response.set_cookie( key="datacat_auth_token", value=access_token, secure=True, domain=".localhost", expires=datetime.utcnow()+timedelta(minutes=5) # TODO get domain from settings ) -- GitLab