diff --git a/changelog/unreleased/bugfix-stuck-after-session-expired b/changelog/unreleased/bugfix-stuck-after-session-expired new file mode 100644 index 00000000000..6f546ae1bb3 --- /dev/null +++ b/changelog/unreleased/bugfix-stuck-after-session-expired @@ -0,0 +1,8 @@ +Bugfix: Stuck After Session Expired + +We've fixed exit link to redirect to login once session expires + +We've removed the logout click handler and created a new logout component + +https://github.com/owncloud/web/issues/7453 +https://github.com/owncloud/web/pull/7491 diff --git a/packages/web-runtime/src/pages/accessDenied.vue b/packages/web-runtime/src/pages/accessDenied.vue index eec911f8676..4db0ab81870 100644 --- a/packages/web-runtime/src/pages/accessDenied.vue +++ b/packages/web-runtime/src/pages/accessDenied.vue @@ -11,8 +11,9 @@ Login Error

Your user session is invalid or has expired.

-
- If you like to login with a different user please proceed to exit. +
+ If you like to login with a different user please proceed to + exit
Attention: this will log you out from all applications you are running in @@ -31,7 +32,6 @@ diff --git a/packages/web-runtime/src/pages/logout.vue b/packages/web-runtime/src/pages/logout.vue new file mode 100644 index 00000000000..3309441452b --- /dev/null +++ b/packages/web-runtime/src/pages/logout.vue @@ -0,0 +1,15 @@ + + diff --git a/packages/web-runtime/src/router/index.ts b/packages/web-runtime/src/router/index.ts index cd44f4ba15e..67ebc116a46 100644 --- a/packages/web-runtime/src/router/index.ts +++ b/packages/web-runtime/src/router/index.ts @@ -3,6 +3,7 @@ import Router from 'vue-router' import AccessDeniedPage from '../pages/accessDenied.vue' import Account from '../pages/account.vue' import LoginPage from '../pages/login.vue' +import LogoutPage from '../pages/logout.vue' import OidcCallbackPage from '../pages/oidcCallback.vue' import ResolvePublicLinkPage from '../pages/resolvePublicLink.vue' import { setupAuthGuard } from './setupAuthGuard' @@ -40,6 +41,12 @@ export const router = patchRouter( component: LoginPage, meta: { title: $gettext('Login') } }, + { + path: '/logout', + name: 'logout', + component: LogoutPage, + meta: { title: $gettext('Logout') } + }, { path: '/oidc-callback', name: 'oidcCallback',