gethub icon indicating copy to clipboard operation
gethub copied to clipboard

Two Factor Authentication support

Open benmcrae opened this issue 9 years ago • 4 comments

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.

benmcrae avatar Jul 12 '14 22:07 benmcrae

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!

pearkes avatar Jul 13 '14 18:07 pearkes

Hey,

Anybody started work on this?

Cheers

charliedowler avatar Aug 25 '14 10:08 charliedowler

Not to my knowledge, no!

On Aug 25, 2014, at 3:59 AM [email protected] wrote:

Hey,

Anybody started work on this?

Cheers

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

pearkes avatar Aug 25 '14 14:08 pearkes

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

daredevil786 avatar Sep 28 '17 05:09 daredevil786