[error][ERROR] 2FA token not provided #1500

Closed
opened 2026-02-05 01:05:48 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @Y0ngg4n on GitHub (Feb 6, 2023).

Subject of the issue

Can not login with 2FA enabled.

If you remove 2FA in the Admin panel you can login again.
If you add 2FA back i can not login.

[2023-02-06 17:32:42.940][error][ERROR] 2FA token not provided
[2023-02-06 17:33:01.811][error][ERROR] 2FA token not provided
[2023-02-06 17:59:44.405][error][ERROR] 2FA token not provided

Deployment environment

  • vaultwarden version: 1.27.0
  • Web version: 2022.12.0
  • Install method: Docker (Kubernetes)

  • Clients used:
    Web, Android, Firefox Extension

  • Reverse proxy and version:
    Traefik + Letsencrypt

  • Other relevant details:

Steps to reproduce

Create a account at https://vault.vaultwarden.net.
Add 2FA to your account at https://vault.vaultwarden.net
Write me to remove 2FA again. And login again.

Expected behaviour

Normal 2FA login

Actual behaviour

I got the message that an error occurred

Troubleshooting data

Originally created by @Y0ngg4n on GitHub (Feb 6, 2023). ### Subject of the issue Can not login with 2FA enabled. If you remove 2FA in the Admin panel you can login again. If you add 2FA back i can not login. ``` [2023-02-06 17:32:42.940][error][ERROR] 2FA token not provided [2023-02-06 17:33:01.811][error][ERROR] 2FA token not provided [2023-02-06 17:59:44.405][error][ERROR] 2FA token not provided ``` ### Deployment environment <!-- ========================================================================================= Preferably, use the `Generate Support String` button on the admin page's Diagnostics tab. That will auto-generate most of the info requested in this section. ========================================================================================= --> <!-- The version number, obtained from the logs (at startup) or the admin diagnostics page --> <!-- This is NOT the version number shown on the web vault, which is versioned separately from vaultwarden --> <!-- Remember to check if your issue exists on the latest version first! --> * vaultwarden version: 1.27.0 * Web version: 2022.12.0 <!-- How the server was installed: Docker image, OS package, built from source, etc. --> * Install method: Docker (Kubernetes) * Clients used: <!-- web vault, desktop, Android, iOS, etc. (if applicable) --> Web, Android, Firefox Extension * Reverse proxy and version: <!-- if applicable --> Traefik + Letsencrypt * Other relevant details: ### Steps to reproduce <!-- Tell us how to reproduce this issue. What parameters did you set (differently from the defaults) and how did you start vaultwarden? --> Create a account at https://vault.vaultwarden.net. Add 2FA to your account at https://vault.vaultwarden.net Write me to remove 2FA again. And login again. ### Expected behaviour Normal 2FA login ### Actual behaviour <!-- Tell us what actually happened --> I got the message that an error occurred ### Troubleshooting data <!-- Share any log files, screenshots, or other relevant troubleshooting data -->
Author
Owner

@BlackDex commented on GitHub (Feb 6, 2023):

You probably have some security headers enabled your self on the reverse proxy. Like ModSecurity or something. This causes issues.

@BlackDex commented on GitHub (Feb 6, 2023): You probably have some security headers enabled your self on the reverse proxy. Like ModSecurity or something. This causes issues.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#1500