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

set cookie to default domain instead of locahost

parent 96e15c78
Branches
Tags
No related merge requests found
Pipeline #119758 passed
......@@ -142,7 +142,7 @@ async def keycloak_token(request: Request):
# set token in cookie, this can then be extractet via the frontend javascript
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
key="datacat_auth_token", value=access_token, secure=True, expires=datetime.utcnow()+timedelta(minutes=5) # TODO get domain from settings
)
return response
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment