github-pr-stats icon indicating copy to clipboard operation
github-pr-stats copied to clipboard

2-factor auth

Open adam000 opened this issue 11 years ago • 4 comments

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.

adam000 avatar Mar 31 '14 18:03 adam000

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

xiongchiamiov avatar Apr 12 '14 17:04 xiongchiamiov

i have this problem too.

cfarm avatar Aug 28 '15 22:08 cfarm

same

tkwidmer avatar Oct 27 '15 01:10 tkwidmer

+1

gonzalodiaz avatar Apr 22 '16 22:04 gonzalodiaz