Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command failed generating auth token #12

Closed
bsdlp opened this issue Sep 7, 2013 · 7 comments
Closed

Command failed generating auth token #12

bsdlp opened this issue Sep 7, 2013 · 7 comments

Comments

@bsdlp
Copy link

bsdlp commented Sep 7, 2013

After entering my github password for git hub setup:

Command failed at line 142 in setup:api-token of /usr/lib/git-core/git-hub.d/git-hub-setup

Could this be related to two factor authentication? I'm not sure of how auth tokens are generated with GitHub.

@oalders
Copy link

oalders commented Nov 6, 2013

I had the same issue and I was also wondering if it was related to two factor auth as I did get the auth code sent to my phone just after the error.

@aocole
Copy link

aocole commented Apr 17, 2014

Yes, this is related to two-factor auth. As a workaround, you can go to https://github.com/settings/applications and create a new "personal access token" with the following permissions: delete_repo, gist, repo, user. Then paste the token in to ~/.git-hub/config under the "api-token" key.

@ingydotnet
Copy link
Owner

I'm not sure how to support 2FA but I should at least detect the errors and
then print out useful manual info.

@ingydotnet
Copy link
Owner

Fixed in 2480754

I added a detection and prompt for 2FA in setup.

Need to do it for all the other commands that use Basic Auth.
(the token and scope commands)

@oalders
Copy link

oalders commented Apr 25, 2014

Thanks! 👍

@ingydotnet
Copy link
Owner

You're so welcome.

I'm using the new comment feature to comment on your :+1. :)

I just modified it to inline the entire existing thread in the editor while you
are commenting. It's awesome.

@oalders, see if git hub upgrade works for you.

1 similar comment
@ingydotnet
Copy link
Owner

You're so welcome.

I'm using the new comment feature to comment on your :+1. :)

I just modified it to inline the entire existing thread in the editor while you
are commenting. It's awesome.

@oalders, see if git hub upgrade works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants