Skip to content

Nextcloud site constantly reloading due to token refresh#1449

Description

@dan0v

How to use GitHub

  • Please use the 馃憤 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Ever since #1391, Nextcloud often reloads the page, losing any progress in whatever was being worked on.

Steps to reproduce

  1. Log in using an OIDC IDP with the store_login_token option enabled (used Authentik).
  2. Wait the isExpiring() threshold duration.
  3. Lose any in-progress work on your current page (any app which does not constantly silently save progress), as Nextcloud reloads and goes through the token exchange flow.

Expected behaviour

In-progress work should not be lost and the focused page should not arbitrarily redirect away if possible...

Behaviour this invasive should at least come with a separate toggle in the UI and a warning message.

Actual behaviour

After the token refresh timeout, even if the user is working on something, a browser redirection flow begins to

  1. /login?redirect_url=...
  2. /apps/user_oidc/login/1?redirectUrl=...
  3. https://idp..../application/o/authorize/?...
  4. /apps/user_oidc/code?...&state=...

before finally landing back on the current page url, with any previous unsaved work in progress on that page lost in the process.

Server configuration

Web server: docker nextcloud:apache

Database: PostgreSQL

PHP version: 8.4

Nextcloud version: 33.0.4

Browser

Browser name: Firefox

Browser version: 151.0.2

Operating system: Fedora 44

IDP: Authentik

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions