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

2-factor auth #4

Open
adam000 opened this issue Mar 31, 2014 · 4 comments
Open

2-factor auth #4

adam000 opened this issue Mar 31, 2014 · 4 comments

Comments

@adam000
Copy link

adam000 commented Mar 31, 2014

My GitHub account has 2-factor authentication, which causes this program to fail:

Traceback (most recent call last):
  File "/usr/bin/github-pr-stats", line 79, in <module>
    note_url='https://github.com/xiongchiamiov/github-pr-stats')
  File "/usr/lib/python2.6/site-packages/github3/api.py", line 34, in authorize
    client_secret)
  File "/usr/lib/python2.6/site-packages/github3/github.py", line 118, in authorize
    json = self._json(ses.post(url, data=dumps(data)), 201)
  File "/usr/lib/python2.6/site-packages/github3/models.py", line 86, in _json
    if self._boolean(response, status_code, 404) and response.content:
  File "/usr/lib/python2.6/site-packages/github3/models.py", line 107, in _boolean
    raise GitHubError(response)
github3.models.GitHubError: 401 Must specify two-factor authentication OTP code.
@xiongchiamiov
Copy link
Owner

Similar to #3, we'll need to modify the call to authorize and login: http://github3py.readthedocs.org/en/latest/api.html?highlight=login#github3.login

@cfarm
Copy link

cfarm commented Aug 28, 2015

i have this problem too.

@tkwidmer
Copy link

same

@gonzalodiaz
Copy link

+1

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

5 participants