Attempting to authenticate with the fly cli fails with "could not find a valid token"
book
Article ID: 297230
calendar_today
Updated On:
Products
Concourse for VMware Tanzu
Issue/Introduction
When attempting to manually login with the fly cli, after pasting the token it fails with:
could not find a valid token.
The CLI then prompts you to re-enter your token, and continues in this loop.
Environment
Product Version: 6.3
Resolution
This is an issue with the fly cli and the length of tokens. There is an OS dependent limit on the size of the token that can be pasted into the login prompt. When the token length exceeds this, it truncates the token, causing the authentication to fail. Token length is dependent on details relevant to the user attempting to login, such has permissions and number of teams they are present in.