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

Two Factor Authentication support #16

Open
benmcrae opened this issue Jul 12, 2014 · 4 comments
Open

Two Factor Authentication support #16

benmcrae opened this issue Jul 12, 2014 · 4 comments

Comments

@benmcrae
Copy link

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
Copy link
Owner

pearkes commented Jul 13, 2014

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
Copy link
Contributor

Hey,

Anybody started work on this?

Cheers

@pearkes
Copy link
Owner

pearkes commented Aug 25, 2014

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.

@daredevil786
Copy link

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

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

No branches or pull requests

4 participants