mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Unable to login into accounts #1611
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 @ca5ua1 on GitHub (Jun 19, 2023).
Subject of the issue
If user have 2FA he able to login via browser extension but can't login via desktop application.
If user doesn't have 2FA he can login only via web-GUI, browser extensions and desktop application won't work with error - "Unable to fetch".
Deployment environment
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden: DOMAIN, SIGNUPS_ALLOWED, ADMIN_TOKEN, SMTP_HOST, SMTP_PORT, SMTP_FROM
latest 1.28.1
Install method:
docker latest.
Clients used:
web vault, desktop
Reverse proxy and version:
caddy 2
Other relevant details:
Steps to reproduce
Expected behaviour
enable orginization groups and events features
update to latest bitwarden
try to login into 2fa account and non 2fa account
Actual behaviour
"Failed to fetch" error on desktop app and same on web extension in non-2FA account
Troubleshooting data
@BlackDex commented on GitHub (Jun 19, 2023):
You probably have some WAF or ModSecurity or other protection rules active on the reverse proxy.
Or maybe it catches error codes and responds with a custom error instead of passing on the message of Vaultwarden in a 1:1 way.
This causes issues because the clients need to receive the exact response Vaultwarden sends, and not an adjusted one from the revere proxy.
For both the Desktop client and Extension you should be able to use the Developer tools to see what the requests are and what the response is and if there are any errors reported there. I suggest to look at that, and see if that gives more info.
@BlackDex commented on GitHub (Jun 19, 2023):
Also, make sure you pass on all headers sent by Vaultwarden, like the CSP for example, and other security headers for Frames etc...
If those are overridden, they could cause issues with several clients.