1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

[PM-16978] Add support for fido2 2fa on mac (#12823)

* Add support for fido2 2fa on mac

* Update comment

* Update 2fa setup message
This commit is contained in:
Bernd Schoolmann
2025-01-31 18:02:03 +01:00
committed by GitHub
parent 82f416c292
commit 91509f2f7a
3 changed files with 7 additions and 12 deletions

View File

@@ -77,10 +77,11 @@ export class ElectronPlatformUtilsService implements PlatformUtilsService {
return (await this.getApplicationVersion()).split(/[+|-]/)[0].trim(); return (await this.getApplicationVersion()).split(/[+|-]/)[0].trim();
} }
// Temporarily restricted to only Windows until https://github.com/electron/electron/pull/28349 // 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.
// has been merged and an updated electron build is available.
supportsWebAuthn(win: Window): boolean { supportsWebAuthn(win: Window): boolean {
return this.getDevice() === DeviceType.WindowsDesktop; return (
this.getDevice() === DeviceType.WindowsDesktop || this.getDevice() === DeviceType.MacOsDesktop
);
} }
supportsDuo(): boolean { supportsDuo(): boolean {

View File

@@ -14,10 +14,7 @@
{{ "twoStepLoginProviderEnabled" | i18n }} {{ "twoStepLoginProviderEnabled" | i18n }}
</app-callout> </app-callout>
<app-callout type="warning"> <app-callout type="warning">
<p bitTypography="body1">{{ "twoFactorWebAuthnWarning" | i18n }}</p> <p bitTypography="body1">{{ "twoFactorWebAuthnWarning1" | i18n }}</p>
<ul class="tw-mb-0">
<li>{{ "twoFactorWebAuthnSupportWeb" | i18n }}</li>
</ul>
</app-callout> </app-callout>
<img class="tw-float-right tw-ml-5 mfaType7" alt="FIDO2 WebAuthn logo" /> <img class="tw-float-right tw-ml-5 mfaType7" alt="FIDO2 WebAuthn logo" />
<ul class="bwi-ul"> <ul class="bwi-ul">

View File

@@ -2401,11 +2401,8 @@
"twoFactorU2fProblemReadingTryAgain": { "twoFactorU2fProblemReadingTryAgain": {
"message": "There was a problem reading the security key. Try again." "message": "There was a problem reading the security key. Try again."
}, },
"twoFactorWebAuthnWarning": { "twoFactorWebAuthnWarning1": {
"message": "Due to platform limitations, WebAuthn cannot be used on all Bitwarden applications. You should set up another two-step login provider so that you can access your account when WebAuthn cannot be used. Supported platforms:" "message": "Due to platform limitations, WebAuthn cannot be used on all Bitwarden applications. You should set up another two-step login provider so that you can access your account when WebAuthn cannot be used."
},
"twoFactorWebAuthnSupportWeb": {
"message": "Web vault and browser extensions on a desktop/laptop with a WebAuthn supported browser (Chrome, Opera, Vivaldi, or Firefox with FIDO U2F turned on)."
}, },
"twoFactorRecoveryYourCode": { "twoFactorRecoveryYourCode": {
"message": "Your Bitwarden two-step login recovery code" "message": "Your Bitwarden two-step login recovery code"