cp8_cli icon indicating copy to clipboard operation
cp8_cli copied to clipboard

Simplify token input

Open davidstosik opened this issue 6 years ago • 3 comments

Github's Hub can fetch a token after prompting the user for username and password.

$ hub api
github.com username: davidstosik
github.com password for davidstosik (never stored): 
two-factor authentication code: 
# ...

$ cat ~/.config/hub
github.com:
- user: davidstosik
  oauth_token: CENSORED
  protocol: https

Would be nice to have something similar, or maybe we could make direct use of the hub command?

davidstosik avatar Feb 26 '19 09:02 davidstosik

Does that automatically create a token on behalf of the user I wonder?

balvig avatar Mar 01 '19 02:03 balvig

Does that automatically create a token on behalf of the user I wonder?

Yes! With only the permissions it needed.

image

davidstosik avatar Mar 01 '19 05:03 davidstosik

Cool, sounds like a nice enhancement.

balvig avatar Mar 01 '19 06:03 balvig