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

relative redirects for sso

parent 4680cceb
No related branches found
No related tags found
No related merge requests found
Pipeline #146961 passed
...@@ -151,7 +151,7 @@ async def sso_token(request: Request): ...@@ -151,7 +151,7 @@ async def sso_token(request: Request):
log.debug("Externally authenticed User: '%s' requested /sso_token", datacat_user.username) log.debug("Externally authenticed User: '%s' requested /sso_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("/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, expires=datetime.utcnow()+timedelta(minutes=5) key="datacat_auth_token", value=access_token, secure=True, expires=datetime.utcnow()+timedelta(minutes=5)
) )
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</form> </form>
<!-- SSO Redirect --> <!-- SSO Redirect -->
<a class="button btn btn-primary" href="/sso_login" id="ssoButton"> <a class="button btn btn-primary" href="./sso_login" id="ssoButton">
Log In with SSO Log In with SSO
</a> </a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment