Uploaded image for project: 'Hawkular'
  1. Hawkular
  2. HAWKULAR-102

Should be redirected to login when token expires

XMLWordPrintable

      After a period of inactivity, the auth token expires, but it's still possible to navigate the UI although the website doesn't present the information (empty chart, empty values for average, median, etc). Also, in the browser console it's possible to see the following errors:

      authInterceptor.ts:34 Intercepting request
      keycloak.js:268 POST http://localhost:8080/auth/realms/hawkular/tokens/refresh 400 (Bad Request)
      authInterceptor.ts:49 Couldn't update token
      

      See attached screenshot for sample.

      With a browser refresh, the user is redirected to the login page. Ideally, the user should be redirected to the login page when this token refresh error happens, with no need of refresh.

        1. almost-inactivity-blur.png
          almost-inactivity-blur.png
          57 kB
        2. blurred-inactivity.png
          blurred-inactivity.png
          67 kB
        3. HAWKULAR-102.png
          HAWKULAR-102.png
          13 kB
        4. screenshot-1.png
          screenshot-1.png
          242 kB

            jpkroehling@redhat.com Juraci Paixão Kröhling (Inactive)
            alexandrem_jira Alexandre Mendonça (Inactive)
            Matthew Mahoney Matthew Mahoney
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: