gethub
gethub copied to clipboard
Two Factor Authentication support
When running gethub authorize
with 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.
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!
Hey,
Anybody started work on this?
Cheers
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.
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