nextcloud/core/src
Ferdinand Thiessen 1df23140b8 fix: Redirect user to login if session is terminated
If a session timed out or was closed in another tab,
then currently the user gets random error messages.
This intercepts 401 responses (should only happen if logged out, or the
users does something wrong).

If we get a 401, we make sure its because of the session,
by checking if the user can access the files app.
If that is also the case we forward the user to the login page
and set the redirect URL to the last used URL.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-12-19 18:56:46 +01:00
..
components fix(recommended-apps): Typo "screen sharing" vs "screensharing" 2024-11-19 15:14:15 +01:00
files fix(files_sharing): adjust IAttributes API and files_versions 2024-07-12 20:14:30 +02:00
jquery refactor(styles): Adjust code style in SCSS sources to match our stylelint config 2024-11-19 09:42:13 +01:00
mixins chore: Add SPDX header 2024-05-13 17:41:36 +02:00
OC chore: Move legacy dialogs template from files to core until we can remove it 2024-09-20 13:47:08 +02:00
OCA chore: Add SPDX header 2024-05-13 17:41:36 +02:00
OCP fix(code-style): Adjust JS code to our code style 2024-10-16 22:11:59 +02:00
services fix(code-style): Adjust JS code to our code style 2024-10-16 22:11:59 +02:00
store chore: Add SPDX header 2024-05-13 17:41:36 +02:00
systemtags fix(code-style): Adjust JS code to our code style 2024-10-16 22:11:59 +02:00
tests test: Migrated all Jest tests to vitest 2024-08-26 17:27:22 +02:00
types chore: Make active apps initial state consistent with OCS API 2024-07-10 01:35:24 +02:00
Util chore: Enable ESLint for apps and fix all errors 2024-07-09 17:13:30 +02:00
utils fix: Redirect user to login if session is terminated 2024-12-19 18:56:46 +01:00
views refactor(styles): Adjust code style in SCSS sources to match our stylelint config 2024-11-19 09:42:13 +01:00
ajax-cron.ts refactor(core): Make AJAX cron script work without jQuery 2024-06-28 17:28:10 +02:00
eventbus.d.ts feat: Add in-app search 2024-06-27 12:13:14 +02:00
globals.js chore: Add SPDX header 2024-05-13 17:41:36 +02:00
icons.js chore: Add text file icon class 2024-10-09 14:34:53 -07:00
init.js feat(core): offer clipboard fallback for non-secure environments 2024-11-08 14:01:33 +01:00
install.js fix(code-style): Adjust JS code to our code style 2024-10-16 22:11:59 +02:00
legacy-unified-search.js chore(deps): Update @nextcloud/auth to v2.4.0 and use getCSPNonce where possible 2024-08-13 17:54:47 +02:00
logger.js feat: Add in-app search 2024-06-27 12:13:14 +02:00
login.js chore: Add SPDX header 2024-05-13 17:41:36 +02:00
main.js chore(deps): Update @nextcloud/auth to v2.4.0 and use getCSPNonce where possible 2024-08-13 17:54:47 +02:00
maintenance.js chore: Add SPDX header 2024-05-13 17:41:36 +02:00
public-page-menu.ts feat: Implement Vue UI for public page menu 2024-09-03 16:07:49 +02:00
public.ts fix: Fix inaccessible content on public pages due to overlapping footer 2024-09-05 16:19:22 -07:00
recommendedapps.js chore(deps): Update @nextcloud/auth to v2.4.0 and use getCSPNonce where possible 2024-08-13 17:54:47 +02:00
session-heartbeat.js chore: Enable ESLint for apps and fix all errors 2024-07-09 17:13:30 +02:00
unified-search.ts chore(deps): Update @nextcloud/auth to v2.4.0 and use getCSPNonce where possible 2024-08-13 17:54:47 +02:00
unsupported-browser-redirect.js chore(deps): Update @nextcloud/auth to v2.4.0 and use getCSPNonce where possible 2024-08-13 17:54:47 +02:00
unsupported-browser.js chore: Add SPDX header 2024-05-13 17:41:36 +02:00