diff --git a/client/src/mixins/logout.js b/client/src/mixins/logout.js index f54a30d1..6982bc95 100644 --- a/client/src/mixins/logout.js +++ b/client/src/mixins/logout.js @@ -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}`); } }); } diff --git a/server/.env.example b/server/.env.example index 20ae4f46..0256c9b8 100644 --- a/server/.env.example +++ b/server/.env.example @@ -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=