Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-2875

Empty page with "401 Unauthorized" error when OCP OAuth session is expired in Dashboard

XMLWordPrintable

    • False
    • None
    • False
    • Not Required
    • Workaround Exists
    • Hide

      Go to DS Dashboard page in browser incognito mode.
      or
      Clear DS Dashboard page cookies in browser.

      Show
      Go to DS Dashboard page in browser incognito mode. or Clear DS Dashboard page cookies in browser.

      Steps to reproduce:

      1. Install Dev Spaces 3.0.0.
      2. There is 30 minutes token timeout in OCP by default.
      To configure 5 minutes timeout in OCP cluster settings

      oc patch OAuth/cluster -p '{ "spec": { "tokenConfig": { "accessTokenInactivityTimeout": "5m" }}}' --type merge
      

      3. Go to Dashboard page, login into as OpenShift user.

      4. Wait 5 minutes on OpenShift login session to be expired.

      5. Go to Dashboard page again.

      Actual behavior: Dashboard has shown "401 Unauthorized" error page in when OCP OAuth session is expired:

      There was also completely empty page:

      Expected behavior: Dashboard to redirect to OCP OAuth page.

      Note: I have been experiencing this error more than 10 times per day verifying Dev Spaces between the meetings 30 minutes long on OCP 4.10 with 30 minutes token inactivity timeout by default.

            ibuziuk@redhat.com Ilya Buziuk
            dnochevn Dmytro Nochevnov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: