Login with device failed with web browser #1707

Closed
opened 2026-02-05 01:31:49 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @Elrondo46 on GitHub (Sep 15, 2023).

Subject of the issue

Login with device failed with web browser

Deployment environment

Podman stable and testing vaultwarden with nginx proxy

  • vaultwarden version: Last
  • Install method: Podman

  • Clients used:

mobile, desktop and web browser

  • Reverse proxy and version:

nginx

  • MySQL/MariaDB or PostgreSQL version:

SQLite

  • Other relevant details:

log of the server

[2023-09-15 17:46:41.844][request][INFO] GET /notifications/hub?access_token=eyJ0eXAiOiJKXXXX
[2023-09-15 17:46:41.844][vaultwarden::api::notifications][INFO] Accepting Rocket WS connection from 2a01:XXXX
[2023-09-15 17:46:41.845][response][INFO] (websockets_hub) GET /notifications/hub?<data..> => 200 OK
[2023-09-15 17:46:41.845][rocket::server][WARN] Response indicated upgrade, but upgrade failed.
[2023-09-15 17:46:41.845][vaultwarden::api::notifications][INFO] Closing WS connection from 2a01:XXXX
[2023-09-15 17:46:42.747][request][INFO] GET /api/auth-requests/
[2023-09-15 17:46:42.750][response][INFO] (get_auth_requests) GET /api/auth-requests => 200 OK
[2023-09-15 17:46:42.997][request][INFO] GET /api/auth-requests/
[2023-09-15 17:46:43.001][response][INFO] (get_auth_requests) GET /api/auth-requests => 200 OK
[2023-09-15 17:46:43.805][request][INFO] GET /api/auth-requests/a76dd824-XXXX-455d-9d39-758946af81fc
[2023-09-15 17:46:43.807][response][INFO] (get_auth_request) GET /api/auth-requests/<uuid> => 200 OK
[2023-09-15 17:46:45.405][request][INFO] GET /api/auth-requests/a76dd824-XXXX-455d-9d39-758946af81fc
[2023-09-15 17:46:45.406][response][INFO] (get_auth_request) GET /api/auth-requests/<uuid> => 200 OK
[2023-09-15 17:46:45.468][request][INFO] PUT /api/auth-requests/a76dd824-XXXX-455d-9d39-758946af81fc
[2023-09-15 17:46:45.471][response][INFO] (put_auth_request) PUT /api/auth-requests/<uuid> => 200 OK
[2023-09-15 17:46:45.998][request][INFO] GET /api/auth-requests/
[2023-09-15 17:46:46.000][request][INFO] GET /api/auth-requests/
[2023-09-15 17:46:46.001][response][INFO] (get_auth_requests) GET /api/auth-requests => 200 OK
[2023-09-15 17:46:46.005][response][INFO] (get_auth_requests) GET /api/auth-requests => 200 OK```

I destroyed for privacy some address, the request is sent and accepted but not redirecting to vault, just stays as not confirmed.
Originally created by @Elrondo46 on GitHub (Sep 15, 2023). ### Subject of the issue Login with device failed with web browser ### Deployment environment Podman stable and testing vaultwarden with nginx proxy * vaultwarden version: Last <!-- How the server was installed: Docker image, OS package, built from source, etc. --> * Install method: Podman * Clients used: <!-- web vault, desktop, Android, iOS, etc. (if applicable) --> mobile, desktop and web browser * Reverse proxy and version: <!-- if applicable --> nginx * MySQL/MariaDB or PostgreSQL version: <!-- if applicable --> SQLite * Other relevant details: log of the server ```[2023-09-15 17:46:25.604][response][INFO] (icon_internal) GET /icons/<domain>/icon.png => 200 OK [2023-09-15 17:46:41.844][request][INFO] GET /notifications/hub?access_token=eyJ0eXAiOiJKXXXX [2023-09-15 17:46:41.844][vaultwarden::api::notifications][INFO] Accepting Rocket WS connection from 2a01:XXXX [2023-09-15 17:46:41.845][response][INFO] (websockets_hub) GET /notifications/hub?<data..> => 200 OK [2023-09-15 17:46:41.845][rocket::server][WARN] Response indicated upgrade, but upgrade failed. [2023-09-15 17:46:41.845][vaultwarden::api::notifications][INFO] Closing WS connection from 2a01:XXXX [2023-09-15 17:46:42.747][request][INFO] GET /api/auth-requests/ [2023-09-15 17:46:42.750][response][INFO] (get_auth_requests) GET /api/auth-requests => 200 OK [2023-09-15 17:46:42.997][request][INFO] GET /api/auth-requests/ [2023-09-15 17:46:43.001][response][INFO] (get_auth_requests) GET /api/auth-requests => 200 OK [2023-09-15 17:46:43.805][request][INFO] GET /api/auth-requests/a76dd824-XXXX-455d-9d39-758946af81fc [2023-09-15 17:46:43.807][response][INFO] (get_auth_request) GET /api/auth-requests/<uuid> => 200 OK [2023-09-15 17:46:45.405][request][INFO] GET /api/auth-requests/a76dd824-XXXX-455d-9d39-758946af81fc [2023-09-15 17:46:45.406][response][INFO] (get_auth_request) GET /api/auth-requests/<uuid> => 200 OK [2023-09-15 17:46:45.468][request][INFO] PUT /api/auth-requests/a76dd824-XXXX-455d-9d39-758946af81fc [2023-09-15 17:46:45.471][response][INFO] (put_auth_request) PUT /api/auth-requests/<uuid> => 200 OK [2023-09-15 17:46:45.998][request][INFO] GET /api/auth-requests/ [2023-09-15 17:46:46.000][request][INFO] GET /api/auth-requests/ [2023-09-15 17:46:46.001][response][INFO] (get_auth_requests) GET /api/auth-requests => 200 OK [2023-09-15 17:46:46.005][response][INFO] (get_auth_requests) GET /api/auth-requests => 200 OK``` I destroyed for privacy some address, the request is sent and accepted but not redirecting to vault, just stays as not confirmed.
Author
Owner

@BlackDex commented on GitHub (Sep 15, 2023):

And the list of duplicates is getting longer and longer and longer...

  1. #3819
  2. #3831
  3. #3862
  4. #3875
  5. #3885
@BlackDex commented on GitHub (Sep 15, 2023): And the list of duplicates is getting longer and longer and longer... 1. #3819 2. #3831 3. #3862 4. #3875 5. #3885
Author
Owner

@youngH1001 commented on GitHub (Nov 19, 2024):

The root cause may be the proxy_http_version of nginx. The right value for proxy_http_version is 1.1 which is for websocket to communicate.

@youngH1001 commented on GitHub (Nov 19, 2024): The root cause may be the proxy_http_version of nginx. The right value for proxy_http_version is 1.1 which is for websocket to communicate.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#1707