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

[OCM-UI] Add a Reload token button to fetch new offline tokens from offline token page & Associate AWS account dialog.

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      Description of problem:

      Once the user fetched/created a new offline tokens from offline token page and if user perform revoke grant action on all the tokens from https://sso.redhat.com/auth/realms/redhat-external/account/applications

      Users have no option to use existing token displayed on the offline token page and require a browser refresh to load new token. Instead  of the same, we would recommend to add a new button that helps to create and fetch new tokens from the backend if it is not available. 

      This is also useful as part of the Associate AWS account dialog because if the token expires with revoke grant action, the Associate AWS account dialog never reloads a new token until it refresh. 

       

      How reproducible:

       Always

       

      Steps to Reproduce:

      1. Log in OCM portal.
      2. Go to ROSA Wizard > Associate AWS account dialog > acknowledge the checkbox > move to the next page.
      3. Copy the ROSA login command with the displayed token. 
      4. Go to the Downloads > Offline token > copy the ocm login command with the token.
      5. Go to Revoke previous tokens > https://sso.redhat.com/auth/realms/redhat-external/account/applications
      6. Perform revoke grant action for all listed tokens.
      7. Execute commands copied in step 3 & 4.
      8. Try to reload new token from both offline token page & ROSA associate AWS account section.

      Actual results:

      At Step 7, Both ROSA and OCM login commands will fail due to unauthorized token as offline tokens were cleared in step 6.

      To reload a new token on the page , the user has to refresh the offline token page or ROSA associate AWS account page  with a browser refresh.This is not a good idea.

       

      Expected results:

      We would recommend to have a "reload token" button for

      1. Reload existing offline token from backend.
      2. Create & reload new offline token if it is expired(removed) from backend.

      This needs to be applicable for the offline token page or ROSA associate AWS account page.

              Unassigned Unassigned
              jmekkatt@redhat.com Jayakrishnan Mekkattillam
              Jayakrishnan Mekkattillam Jayakrishnan Mekkattillam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: