Open alexyao2015 opened 4 days ago
Hi! Thanks for creating this issue (even though some of the debugging work may have been duplicated). Let me know if #339384 fixes the issue for you and if not I can add make sure to add whatever it might be missing.
Describe the bug
The Bitwarden desktop system authentication is currently nonfunctional.
Steps To Reproduce
Expected behavior
The browser extension should be able to unlock using the desktop system authentication
Additional context
I've been able to diagnose and fix the issue by adding some hacks to my nixos configuration using the following steps.
Add
security.polkit.enable = true;
toconfiguration.nix
. Then include thecom.bitwarden.Bitwarden.policy
from here https://github.com/bitwarden/clients/blob/4b9935b28c48e5824a19166170604ec3a6911593/apps/desktop/src/platform/main/biometric/biometric.unix.main.ts#L12.I did this using
.mozilla/native-messaging-hosts/com.8bit.bitwarden.json
The contents of this file need to be replaced, notably the path to the bitwarden executable is incorrect and somehow is a path to an electron executable rather than the correct bitwarden executable. This electron executable when executed gives a segfault. For me, it is located at
/nix/store/afd2nb5r9vpr0xrka8w9za02kx2d40h5-electron-unwrapped-31.4.0/libexec/electron/electron
.If these two core issues (polkit action missing and the bitwarden executable path) could be fixed, this issue could be resolved.
Notify maintainers
@amarshall
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.