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

Google Authenticator does not work with example app. #38

Closed
ghedsouza opened this issue Apr 8, 2014 · 3 comments
Closed

Google Authenticator does not work with example app. #38

ghedsouza opened this issue Apr 8, 2014 · 3 comments
Labels

Comments

@ghedsouza
Copy link

Steps:

  1. Go to http://example-two-factor-auth.herokuapp.com/
  2. Follow steps under "next steps", and choose "Token generator" in step 3.
  3. Use "Google Authenticator" app with the ZXing barcode scanner to scan the QR code.

Results:
An error stating "Please enter a valid token." when I try entering the code (eg. 707923) shown in my Google Authenticator app.

Notes:
Test account info:
username: vectortest
password: a

In Google Authenticator, I see "vectortest@example-two-factor.auth.herokuapp.com" as the account id.

@Bouke
Copy link
Collaborator

Bouke commented Apr 8, 2014

Hi @ghedsouza, sorry to hear that it doesn't work for you. I was not able to replicate this issue with Google Authenticator on my iPhone. From your step 3 it appears as if you're not using an iPhone. What device are you using? What is ZXing barcode scanner? Doesn't Google Authenticator come with a barcode scanner built-in on your device? Does that set-up work for you on other websites with two-factor authentication and bar-code scanning?

@Bouke Bouke added the bug label Apr 8, 2014
@ghedsouza
Copy link
Author

@Bouke I'm using a Nexus 4. ZXing is the QR scanner application that is recommended by Google Authenticator if you do not already have one installed.

I haven't tried two-factor authentication on other sites, but that is a good idea.

@ghedsouza
Copy link
Author

The problem was that my phone's time was not accurate. I followed the instructions at (https://support.google.com/accounts/answer/185834?hl=en#sync) to independently sync the Google Authenticator app's time with Google's time server, and now the tokens work. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants