mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
2FA not working on new device with firefox plugin #1716
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @timaschew on GitHub (Sep 23, 2023).
Subject of the issue
I tried to setup bitwarden on my new computer, so I've installed the official Firefox plugin, version 2023.8.3
After typing my master password, there is a 2FA prompt, but it fails with this error message:
Two-step token ins invalid. Try againI can login via web interface with 2FA.
I can also login via Bitwarden CLI with 2FA.
Deployment environment
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden: DOMAIN, SIGNUPS_ALLOWED, SIGNUPS_VERIFY, ADMIN_TOKEN, SMTP_HOST, SMTP_PORT, SMTP_FROM, SMTP_FROM_NAME, SMTP_USERNAME, SMTP_PASSWORD
Steps to reproduce
Use Server 1.29.1 and latest Firefox Plugin and try to login into an account with 2FA.
Expected behaviour
2FA works
Actual behaviour
2FA doesn't work, tells that the code is invalid.
Troubleshooting data
I don't see anything interesting in the logs (via docker logs). Is there any other place?
@BlackDex commented on GitHub (Sep 23, 2023):
There must be something in the Vaultwarden logs. At least a log line that that request was done.
Else try to set the log_level to debug, and see if that provides some more details.
@stefan0xC commented on GitHub (Sep 23, 2023):
How do you generate the two-step token? Have you made sure that the device's clock (on which the 2FA authenticator is installed) is not off? (You can check with sites like https://time.gov and https://uhr.ptb.de)
Also does the issue arise with the
2023.7.1version of the add-on?@timaschew commented on GitHub (Sep 23, 2023):
I'm using an auth app on my mobile phone.
I've checked the time on the 2FA device and on the server, it's fine.
I've insalled version 2023.7.1 for the add-on, still same issue.
I've set log level to debug, here is the output
The message
Sending notifications for incomplete 2FA loginsappears only a few seconds after the failed attempt.On my old computer, I have latest firefox plugin 2023.8.3 and it's working fine. I've logged out, logged in again and 2FA works fine.
First I assumed that it's related to the Firefox version, but both are same, 117.0.1
Just the macOS version is different, old: 11.4 and new: 13.5 but I can't imagine that this can be the issue.
Both computers are in the same network, share the same public IP.
@timaschew commented on GitHub (Sep 23, 2023):
I've found the issue, sorry it was my fault.
I've typed the server URL not into the first field (Server URL), but below (Web vault server URL).
I wonder why the password verification was working fine, but not the 2FA.
I also wonder if any data was send to the official bitwarden server with my broken config.
If yes which data?