google / google-authenticator-libpam

Apache License 2.0
1.78k stars 284 forks source link

google-authenticator returns an invalid URL for QR Code #251

Closed dariosusman closed 3 months ago

dariosusman commented 3 months ago

google-authenticator displays a URL to display the QR code that no longer exists. Returns HTTP 404.

Steps To Reproduce

Steps to reproduce the behavior:

  1. run google-authenticator to generate a QR code /usr/bin/google-authenticator -C -t -D -w 15 -u -l <LABEL> -i <ISSUER> -f -s /opt/google-auth/$1
  2. Go to provided URL with any browser. Example: https://www.google.com/chart?chs=200x200&chld=M|0&cht=qr&chl=otpauth://totp/<LABEL>%3Fsecret%3D<SECRET>%26issuer%3D<ISSUER>

https://www.google.com/chart and/or https://chart.googleapis.com/chart return HTTP 404

Expected behavior

The URL should either work or the URL should no longer be used if its service has been deprecated.

Environment

Thank you.

Best regards, Dario Susman

akerl commented 3 months ago

What version are you running? That code path was fully removed in https://github.com/google/google-authenticator-libpam/commit/0a0ebf2e2a5e6d288347208c4d21d6c1aebae4f5 , which should be present in v1.10

dariosusman commented 3 months ago

libpam-google-authenticator 20191231-2

Looks like the package needs updating in Debian's repo.

This ticket can be closed in favour of #126