mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Unable to Deauthorize sessions #1756
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 @MButcho on GitHub (Nov 6, 2023).
Subject of the issue
When I try to Deauthorize sessions, I receive following error:

The reason is I wanted to implement push notifications, which are not working
Deployment environment
vaultwarden version :v1.30.0
Install method: Docker image
Clients used: web vault, desktop, iOS
Reverse proxy and version: nginx version: nginx/1.18.0 (Ubuntu)
Nginx config:
Steps to reproduce
Log into web account / Account Settings / My Account / Deauthorize sessions / Send Code
Expected behaviour
Send email to confirm sessions deauthorize
Actual behaviour
Error above
Troubleshooting data
Log:
[2023-11-06 20:21:16.316][request][INFO] POST /api/accounts/request-otp
[2023-11-06 20:21:16.316][response][INFO] 404 Not Found
@MButcho commented on GitHub (Nov 6, 2023):
Other actions that require OTP have the same issue, like exporting vault
@BlackDex commented on GitHub (Nov 7, 2023):
Seems this only gets triggered when using
Login With Devicei think when looking at the Bitwarden client code.Can you confirm this?
@MButcho commented on GitHub (Nov 7, 2023):
Correct, when using master password to log in, the export and deauthorize is possible
@BlackDex commented on GitHub (Nov 7, 2023):
Great thanks!
@BlackDex commented on GitHub (Nov 7, 2023):
Also, i would suggest to update your nginx config to not use port 3012 anymore, and remove those locations. Also, sending
Connect: Upgradeall the time is probably not good.Check the https://github.com/dani-garcia/vaultwarden/wiki/Proxy-examples for more details.
@BlackDex commented on GitHub (Nov 7, 2023):
I'm able to reproduce this, so now to find the correct solution to fix this.
@BlackDex commented on GitHub (Nov 7, 2023):
Ok, it looks like this needs SMTP to be enabled.
Without this, you can't export, deauthorize, and maybe more specific items, like purge vault etc..
With this feature a mail will be sent with a passcode which enables you to verify you are you when you used
Login with devicewhich was unlocked via either PIN or Biometrics.@kqmaverick commented on GitHub (Nov 8, 2023):
I have SMTP enabled and still see this error.
@BlackDex commented on GitHub (Nov 8, 2023):
That is correct, since the endpoints which are called are not supported by Vaultwarden.
But there could be people who do not have SMTP enabled for which this could be an issue.
Only way they can bypass is to login without an other device.