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

[Tokens] Update deprecation messaging on 'Load Token' page

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • OCMUI Core Sprint 262

      Tyler Creller Tuesday at 8:25 AM
       
      Abhishek requested that we point to service accounts for long-lived authentication needs in the deprecation message. Something to the effect of:
       
      “Still need long-lived API access for automation? Check out service accounts” with a link to the ConsoleDot page.
       
      Abhishek also requested that we mention {}use-device-code{-} in the new token page experience in addition to the -use-auth-code box. Something to the effect of:
       
      “Don’t have access to a browser? Want to use ocm|rosa in a headless environment? try --use-device-code instead”

       

      Acceptance Criteria

      • Add the blue InfoAlert to Downloads -> OpenShift Cluster Manager API Token, under the 'Offline token deprecated' Warning alert.
      • Update Step 2 of the 'SSO Login' instructions, add 2 Options.  One for the existing browser option, and a new option for the 'headless|--use-device-code' instructions (See " How to display the 'SSO Login'" below).

      How to display the 'SSO Login'

      To see SSO login you should add an org level capability to your org. But since you should probably don't want to affect all users in your org the way to test is by fake data/ changing the code locally:

      • In src/components/CLILoginPage/CLILoginPage.tsx L79, add `restrictTokens = true;`
      • Check /token and token/rosa pages, you should see the SSO login instructions (and ui shouldn't fetch the offline token).
      • Remove the line you added. You should see the old offline tokens page.

        1. currentSSO.png
          currentSSO.png
          42 kB
        2. currentTokens.png
          currentTokens.png
          53 kB
        3. token.png
          token.png
          31 kB

              rh-ee-egilman Liza Gilman
              dtaylor@redhat.com David Taylor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: