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 QR #90

Open
RamJett opened this issue Mar 5, 2020 · 4 comments
Open

Google Authenticator QR #90

RamJett opened this issue Mar 5, 2020 · 4 comments

Comments

@RamJett
Copy link

RamJett commented Mar 5, 2020

Trying to get the Google Authenticator to work but when I scan the QR code it errors with "Error Key not recognized" . When I scan the QR code with a scanner I see this content.

url 
otpauth://totp/localhost:3000admin$issuer=localhost%3A3000

I don't know if this is configuration or something not working. I am using in redmine 4.1-stable on Debian 10

@clement-deltel
Copy link

clement-deltel commented Mar 19, 2020

Have you tried after the two commands 'git clone' and 'bundle install' to do a 'bundle update'? For me, three gems were updated during this process and that solved my problem. I think you have to do it before the command 'bundle exec rake redmine:plugins:migrate RAILS_ENV=production'.

@mwarnaar
Copy link

mwarnaar commented May 7, 2020

I had the same problem on a localhost instance. Solved it by updating Host name and path under general settings from localhost:3000 to just localhost and resetting 2FA from /my/account.

@ryota-saito-0309
Copy link

A similar issue occurs with AWS EC2 instances.
I chose'without 2FA' to log in with 2FA disabled.
Then I chose'Reset 2 FA' in the personal settings.
Then I logged out and selected'Google 2FA' again and it worked fine.
When reading the QR code for the first time,'Secret' was not added, but after reset,'Secret' was added to the URI.

URI when first read
'otpauth://totp/localhost:3000:user?issuer=localhost%3A3000'

URI after reset (works properly)
'otpauth://totp/localhost:3000:user?secret=uodvxxx2noad6xxxpndxxxjrqxxxkvx&issuer=localhost%3A3000'

The cause of the problem is unknown.

Please improve someone's code.

@nerkrc
Copy link

nerkrc commented Mar 2, 2021

Hi,

Have someone solved this issue? It's really painful to instruct every user to do additional steps.

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