Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-3475

Event handlers not being initialized after refreshing a page where init is supplied with the Token

    XMLWordPrintable

    Details

    • Steps to Reproduce:
      Hide

      Initialize the application with the active token, idToken and refreshToken and then refresh the page.

      Show
      Initialize the application with the active token, idToken and refreshToken and then refresh the page.

      Description

      I've setup the initialization to be done with these parameters being passed on:

      token, idToken and refreshToken
      

      After logging in and getting redirected to the desired page everything works as expected. All of the 7 event handlers are active and are being triggered as planned:

      1. init
      2. onAuthSuccess
      3. onAuthRefreshSuccess
      4. onAuthError
      5. onAuthLogout
      6. onAuthRefreshError
      7. onTokenExpired

      The problem occurs when you refresh the page. The authentication is successful and the Init event handler gets triggered, but not the remaining 6.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                stianst Stian Thorgersen
                Reporter:
                mnemanja Nemanja Milosavljevic
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: