You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Possible change to make it easy to troubleshoot will be to add token length check.. and if the length is too small than expected (guid length) then warning message to the console indicating this issue.
And login suggested through right click.
The text was updated successfully, but these errors were encountered:
Let's go ahead with the string length check since the *(star) experience is again a framework level change that might take time. There are two things that we need to convey
Inform the user that the token has not been entered
Address the common scenario which is CTRL+ V
Further, there are two cases to login
The user provides PAT with an organization
Check if the PAT is valid. Provide success/failure message based on validation.
The user provides PAT without any organization reference
In this case it is not possible to validate the PAT as no organization reference is provided.
Proposed experience - Organization reference included and user does CTRL+V of token
$ az devops login --organization https://dev.azure.com/contoso
Token:
Please provide a PAT token. If you are using CTRL+ V to paste the token, it won't work in command line or powershell - https://github.com/microsoft/knack/issues/160. Use right click or console menu to paste the token.
Token:
Successfully logged in to http://dev.azure.com/contoso using the token.
Token input comes up along with the provided error message till the user enters non 0 token or exits the command.
Proposed experience - Organization reference not included and user does CTRL+v of token
$ az devops login
Token:
Please provide a PAT token. If you are using CNTRL + V to paste the token, it won't work in command line or powershell - https://github.com/microsoft/knack/issues/160. Use right click or console menu to paste the token.
Token:
Token accepted.
Note: This is only a workaround to let the user know if CTRL+V was used on command prompt or powershell on windows. The issue still exists as described in microsoft/knack#160
Az devops login password prompt does not work when ctrl+v is used on the prompt.
microsoft/knack#160
Possible change to make it easy to troubleshoot will be to add token length check.. and if the length is too small than expected (guid length) then warning message to the console indicating this issue.
And login suggested through right click.
The text was updated successfully, but these errors were encountered: