Uploaded image for project: 'OCMUI - OpenShift Cluster Manager UI'
  1. OCMUI - OpenShift Cluster Manager UI
  2. OCMUI-3033

Investigate whether TokenUtils could be replaced by useChrome

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Core UI
    • None
    • Technical Debt
    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • OCMUI Core Sprint 266, OCMUI Core Sprint 267

      checking the code there's a huge todo in the comments of `TokenUtils.ts`

      https://github.com/RedHatInsights/uhc-portal/blob/7ed7b18d59afd136dce768d788eca2b4a77f38df/src/components/CLILoginPage/TokenUtils.ts#L1-L8

      The linked file do not exist anymore. I quickly checked `useChrome` and it seems to expose a function to retrieve the offline token:

      https://github.com/RedHatInsights/frontend-components/blob/7bdbc55116c2f9f7ac728b017c2e33c4f173845d/docs/chrome/chrome-api.md#authgetofflinetoken
      it could replace all our code (including keycloak-js)? To investigate

              emingora Enrique Mingorance Cano
              emingora Enrique Mingorance Cano
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: