Skip to content

When logging into sandbox using quick pick workflow with token, token is "invalid" #4459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
datho7561 opened this issue Sep 12, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@datho7561
Copy link
Contributor

To reproduce this issue:

  1. start a Red Hat OpenShift Sandbox cluster
  2. log into the cluster using the command line (oc login ...), then log out on command line (oc logout)
  3. in VS Code OpenShift Toolkit, use the Application Explorer to login to the cluster by pressing the "Login" button
  4. it should be a series of quickpicks
  5. select the sandbox cluster
  6. select "token" as the method of authentication
  7. copy the login token from within the sandbox cluster ui by double clicking the token then pressing Ctrl+C
  8. paste the token into the quickpick for the token

It should state that the token is invalid and prevent you from continuing through the wizard.

  1. remove the first and last character of the token

Now, it will list the token as valid.

Something other than the token is being added into the copied text, and it isn't being removed before we attempt to validate the token.

@datho7561
Copy link
Contributor Author

Fixed by #4460

@datho7561 datho7561 added this to the 1.17.0 milestone Sep 12, 2024
@vrubezhny vrubezhny moved this to ✅ Done in IDE Cloudaptors Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

No branches or pull requests

2 participants