Skip to content
Snippets Groups Projects
Commit 96e15c78 authored by Christian Boettcher's avatar Christian Boettcher
Browse files

remove localhost redirect

parent 9f6186d7
Branches
Tags
No related merge requests found
Pipeline #119755 passed
...@@ -140,7 +140,7 @@ async def keycloak_token(request: Request): ...@@ -140,7 +140,7 @@ async def keycloak_token(request: Request):
log.debug("Externally authenticed User: '%s' requested /keycloak_token", datacat_user.username) 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 # 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( 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 key="datacat_auth_token", value=access_token, secure=True, domain=".localhost", expires=datetime.utcnow()+timedelta(minutes=5) # TODO get domain from settings
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment