Redirect user to hep logout-url after logout
This commit is contained in:
parent
7747a039cb
commit
f8f40d08b8
|
|
@ -7,7 +7,7 @@ export default {
|
||||||
mutation: LOGOUT_MUTATION,
|
mutation: LOGOUT_MUTATION,
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (data.logout.success) {
|
if (data.logout.success) {
|
||||||
location.replace('/');
|
location.replace(`https://sso.hep-verlag.ch/logout?return_to=${process.env.LOGOUT_REDIRECT_URL}`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,3 +37,4 @@ export OAUTH_ACCESS_TOKEN_URL=
|
||||||
export OAUTH_AUTHORIZE_URL=
|
export OAUTH_AUTHORIZE_URL=
|
||||||
export OAUTH_API_BASE_URL=
|
export OAUTH_API_BASE_URL=
|
||||||
export OAUTH_LOCAL_REDIRECT_URI=
|
export OAUTH_LOCAL_REDIRECT_URI=
|
||||||
|
export LOGOUT_REDIRECT_URL=
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue