mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
TOTP Blocked when use proxy_intercept_errors for code 400 #1359
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 @webysther on GitHub (Sep 18, 2022).
Subject of the issue
When creating nice error pages I discovered that after login the page that request the TOTP is intercepted by reverse proxy when the page for code HTTP 400 is used
Deployment environment
Where is admin page Generate Support String!?
Install method: docker
Clients used: web vault
Reverse proxy and version: Nginx Proxy Manager
MySQL/MariaDB or PostgreSQL version: SQLite
Other relevant details: Removed
error_page 400 /.../400.htmlsolve the problemSteps to reproduce
Create a error page for HTTP 400 and try login with user configured TOTP:
Expected behaviour
Workes with error pages 400 configured
Actual behaviour
Troubleshooting data
@webysther commented on GitHub (Sep 18, 2022):
To fix this problem maybe need to fix the HTTP request for the page of TOTP, which looks malformed.
For me don't make sense to use HTTP 400 for this, a 302 makes sense because the user and pass are correct, don't give the TOTP as the second step of the login flow.