[DRE-maint] Bug#724748: gist: does not work with github two-factor authentication

Miles Bader miles at gnu.org
Fri Sep 27 13:44:47 UTC 2013


Package: gist
Version: 4.0.3-2
Severity: normal

Dear Maintainer,

My github account uses the (relatively new) github two-factor authentication
feature.

Typing "gist --login" fails with a message that suggests that two-factor
authentication is confusing it:

   $ gist --login
   Obtaining OAuth2 access_token from github.
   GitHub username: XXX
   GitHub password:

   /usr/lib/ruby/vendor_ruby/gist.rb:171:in `login!': Got Net::HTTPUnauthorized
from gist: {"message":"Must specify two-factor authentication OTP
code.","documentation_url":"http://developer.github.com/v3/auth#working-with-
two-factor-authentication"} (RuntimeError)
           from /usr/bin/gist:48:in `block (2 levels) in <main>'
           from /usr/lib/ruby/1.9.1/optparse.rb:1360:in `call'
           from /usr/lib/ruby/1.9.1/optparse.rb:1360:in `block in
parse_in_order'
           from /usr/lib/ruby/1.9.1/optparse.rb:1347:in `catch'
           from /usr/lib/ruby/1.9.1/optparse.rb:1347:in `parse_in_order'
           from /usr/lib/ruby/1.9.1/optparse.rb:1341:in `order!'
           from /usr/lib/ruby/1.9.1/optparse.rb:1432:in `permute!'
           from /usr/lib/ruby/1.9.1/optparse.rb:1453:in `parse!'
           from /usr/bin/gist:116:in `<main>'

   $

Thanks,

-miles



-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.utf8, LC_CTYPE=ja_JP.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gist depends on:
ii  ruby                          1:1.9.3
ii  ruby-json                     1.8.0-1
ii  ruby1.8 [ruby-interpreter]    1.8.7.358-8
ii  ruby1.9.1 [ruby-interpreter]  1.9.3.448-1

gist recommends no packages.

gist suggests no packages.

-- no debconf information



More information about the Pkg-ruby-extras-maintainers mailing list