pearkes / gethub

A utility for cloning and fetching your remote git repositories from GitHub.
MIT License
217 stars 265 forks source link

Two Factor Authentication support #16

Open benmcrae opened 10 years ago

benmcrae commented 10 years ago

When running gethub authorizewith 2FA enabled, the following message is returned...

Uh oh, there was an error authenticating with GitHub. Here's what we got back:

{"message":"Must specify two-factor authentication OTP code.","documentation_url":"https://developer.github.com/v3/auth#working-with-two-factor-authentication"}

I have tried creating a One Time Password but this doesn't seem to work.

pearkes commented 10 years ago

Hey Ben!

Yea, from reading the supplied link, it looks like we just need to add it as a step in the auth flow:

In addition to the Basic Authentication credentials, you must send the user’s authentication code (i.e., one-time password) in the X-GitHub-OTP header. Because these authentication codes expire quickly, we recommend using the Authorizations API to create an access token and using that token to authenticate via OAuth for most API access.

Tagged as an enhancement!

charliedowler commented 10 years ago

Hey,

Anybody started work on this?

Cheers

pearkes commented 10 years ago

Not to my knowledge, no!

On Aug 25, 2014, at 3:59 AM notifications@github.com wrote:

Hey,

Anybody started work on this?

Cheers

— Reply to this email directly or view it on GitHub.

daredevil786 commented 6 years ago

i am trying to write a programe to tweet live pic from rasberrrypie 3 but there is an autication problem in tweet so can anyone solve it