mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
[PM-18884] Enable fido2 2FA on Linux (#13038)
* Add support for fido2 2fa on mac * Update comment * Update 2fa setup message * Enable fido2 2FA on unsandboxed linux * Enable on snap and flatpak * Fix comment * Fix typo
This commit is contained in:
@@ -249,7 +249,8 @@
|
||||
"polkit": {
|
||||
"action-prefix": "com.bitwarden.Bitwarden"
|
||||
}
|
||||
}
|
||||
},
|
||||
"u2f-devices"
|
||||
],
|
||||
"stagePackages": ["default"]
|
||||
},
|
||||
|
||||
@@ -22,6 +22,7 @@ finish-args:
|
||||
- --talk-name=org.freedesktop.ScreenSaver
|
||||
- --system-talk-name=org.freedesktop.login1
|
||||
- --filesystem=xdg-download
|
||||
- --device=all
|
||||
modules:
|
||||
- name: bitwarden-desktop
|
||||
buildsystem: simple
|
||||
|
||||
@@ -77,11 +77,9 @@ export class ElectronPlatformUtilsService implements PlatformUtilsService {
|
||||
return (await this.getApplicationVersion()).split(/[+|-]/)[0].trim();
|
||||
}
|
||||
|
||||
// Restricted to Windows and Mac. Mac is missing support for pin entry, and Linux is missing support entirely and has to be implemented in another way.
|
||||
// Linux and Mac are missing a ui to enter a pin, so this works for two-factor security keys, when always-uv is not active
|
||||
supportsWebAuthn(win: Window): boolean {
|
||||
return (
|
||||
this.getDevice() === DeviceType.WindowsDesktop || this.getDevice() === DeviceType.MacOsDesktop
|
||||
);
|
||||
return true;
|
||||
}
|
||||
|
||||
supportsDuo(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user