lean-cli icon indicating copy to clipboard operation
lean-cli copied to clipboard

Adds `--show-token` Option to `lean login`

Open jordanparker6 opened this issue 3 years ago • 2 comments

I have created a research account today and I am unable to login with the lean CLI with the userid and token emailed to me.

Does it take a while for the account changes to take effect?

jordanparker6 avatar Jul 08 '22 07:07 jordanparker6

Hey @jordanparker6! Sorry to hear your having issues, which error are you getting? it should not take time to have effect, please directly contact support to solve this asap

Martin-Molinero avatar Jul 08 '22 13:07 Martin-Molinero

Hi @jordanparker6, We believe that the issue is due to copying and pasting to the terminal in macOS and also Linux. During this process, some characters might be added at the end of the string, and it records a wrong token. If you add the credentials to $HOME/.lean/credentials file manually (you can create this file if it doesn't exist, it solves the issue.

I changed the name of this issue, so we can add an option to show the token instead of a sequence of *. With this option, we will be able to see what is pasted to the terminal.

AlexCatarino avatar Jul 14 '22 21:07 AlexCatarino

  • Add --show-secrets behavior for lean login/live
  • Refactor prompt_password to disable the usage of askpass, so that it clearly shows the user input and existing default value if any

Martin-Molinero avatar Jan 10 '23 16:01 Martin-Molinero