Redirect user to hep logout-url after logout

This commit is contained in:
Christian Cueni 2021-07-21 07:18:08 +02:00
parent 7747a039cb
commit f8f40d08b8
2 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,7 @@ export default {
mutation: LOGOUT_MUTATION,
}).then(({data}) => {
if (data.logout.success) {
location.replace('/');
location.replace(`https://sso.hep-verlag.ch/logout?return_to=${process.env.LOGOUT_REDIRECT_URL}`);
}
});
}

View File

@ -37,3 +37,4 @@ export OAUTH_ACCESS_TOKEN_URL=
export OAUTH_AUTHORIZE_URL=
export OAUTH_API_BASE_URL=
export OAUTH_LOCAL_REDIRECT_URI=
export LOGOUT_REDIRECT_URL=