Skip to content
Snippets Groups Projects
Commit 063d56fc authored by Timothee P's avatar Timothee P :sunflower:
Browse files

Merge branch 'redmine-issues/24200' into 'develop'

REDMINE_ISSUE-24200 | Déconnexion OGS <-> GC

See merge request !865
parents 960e0047 170fc9d8
No related branches found
No related tags found
1 merge request!865REDMINE_ISSUE-24200 | Déconnexion OGS <-> GC
...@@ -121,6 +121,15 @@ const updateUserStatus = () => { ...@@ -121,6 +121,15 @@ const updateUserStatus = () => {
store.dispatch('GET_USER_LEVEL_PERMISSIONS'); store.dispatch('GET_USER_LEVEL_PERMISSIONS');
store.dispatch('GET_USER_LEVEL_PROJECTS'); store.dispatch('GET_USER_LEVEL_PROJECTS');
} }
} else if (store.state.user) {
// Lorsqu'un utilisateur est déconnecté du SSO, la requête de vérification de session envoyée à l'API de l'application échoue avec une erreur 400.
// On force la déconnexion de l'utilisateur dans ce cas.
store.dispatch('LOGOUT')
store.commit('DISPLAY_MESSAGE', {
level: 'negative',
comment: `Vous avez été déconnecté du service d'authentification.
Reconnectez-vous ou continuez en mode anonyme.`
});
} }
}) })
.catch(() => { .catch(() => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment