To reproduce this issue:
- start a Red Hat OpenShift Sandbox cluster
- log into the cluster using the command line (
oc login ...), then log out on command line (oc logout)
- in VS Code OpenShift Toolkit, use the Application Explorer to login to the cluster by pressing the "Login" button
- it should be a series of quickpicks
- select the sandbox cluster
- select "token" as the method of authentication
- copy the login token from within the sandbox cluster ui by double clicking the token then pressing Ctrl+C
- 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.
- 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.
To reproduce this issue:
oc login ...), then log out on command line (oc logout)It should state that the token is invalid and prevent you from continuing through the wizard.
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.