Skip to content

WebAuthn authentication prompt does not work on macOS #27355

Closed as not planned
Closed as not planned

Description

@CBMasri

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

The authentication prompt for public key credentials is not working/supported in electron on macOS. Platform authenticators (eg. Windows Hello, TouchID) do not appear to be supported for any o/s.

  • Electron Version:
    • 11.1.1
  • Operating System:
    • macOS 11.0.1 (M1)
  • Last Known Working Electron version:
    • n/a

Expected Behavior

Call to navigator.credentials.create({ publicKey: ... }) opens an authentication prompt on macOS.

Actual Behavior

Call to navigator.credentials.create({ publicKey: ... }) times out and no prompt is displayed.

To Reproduce

  1. Load fiddle: https://gist.github.com/0e76ea8515d171c3e747c8814a8a659b
  2. Type a username
  3. Click "Register"
  4. Request times out after ~1m

Screenshots

Request timeout:

image

On Windows, the authentication prompt is displayed:

explorer_D7xRi9J9eM

It also works on Chromium (macOS):

image

Additional Information

Related Issues:

Activity

  1. blackph0en1x commented on Oct 27, 2021

    @blackph0en1x

    Any news on this issue? I've been told from bitwarden developers that it is still not working.

  2. fix commented on Feb 21, 2022

    @fix

    Hi, I have not tested, but from my recent experience might be that user interaction is REQUIRED before performing credentials create/get request

    See https://developer.apple.com/forums/thread/651669

    I had no choice but do a popup clicked by the user before so it does not timeout.

  3. fix commented on Apr 6, 2022

    @fix

    ok i have made some test.

    On macOS, actually, there is no popup, BUT the request is being made on your key (Hit your yubikey and it works)!

    Sounds the interface to communicate (asking for pin for instance) is not bound into macOS build.

    I have the following errors in the console:

    [42622:0406/171907.136506:ERROR:device_event_log_impl.cc(214)] [17:19:07.136] FIDO: fido_request_handler_base.cc:183 Cannot test Bluetooth power status because process is not self-responsible. Launch from Finder to fix.
    [42622:0406/171919.350892:ERROR:device_event_log_impl.cc(214)] [17:19:19.350] FIDO: get_assertion_request_handler.cc:648 Failing assertion request due to status 46 from usb-1050:0402
    
  4. github-actions commented on Oct 6, 2022

    @github-actions
    Contributor

    This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

  5. github-actions commented on Nov 5, 2022

    @github-actions
    Contributor

    This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.

  6. danyg commented on Jul 3, 2023

    @danyg

    This still an issue
    Electron 25.2.0
    Mac OSX: 13.4.1 (Apple Silicon, M1 Pro)

  7. Binomi0 commented on Jul 26, 2023

    @Binomi0

    This still an issue
    Electron 22
    Mac OSX: 13.4.1 (Apple Silicon, M1 Pro)

  8. arioooooo commented on Sep 6, 2023

    @arioooooo

    any update about this? it's not work in electron@^26.1.0 in mac

  9. mahnunchik commented on Sep 15, 2023

    @mahnunchik
    Contributor

    Why it is closed? It is still present in electron 28

  10. mahnunchik commented on Sep 15, 2023

    @mahnunchik
    Contributor

    The workflow is not valid. .github/workflows/issue-commented.yml (Line: 13, Col: 9): Unexpected symbol: '"Bot"'. Located at position 190 within expression: contains(github.event.issue.labels.*.name, 'blocked/need-repro') && !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) && github.event.comment.user.type != "Bot"

    https://github.com/electron/electron/actions/runs/6201050660

  11. WyattMufson commented on Aug 15, 2024

    @WyattMufson

    Still an issue

  12. vikram1992 commented on Nov 9, 2024

    @vikram1992

    Is there any plan to fix this issue?

  13. shengliang74 commented on Jan 3, 2025

    @shengliang74

    It is still present in electron V33.2.1, I hope it can be fixed.

  14. gavan-x commented on Mar 28, 2025

    @gavan-x

    @fix did you manage to get it to work I have the following error on macos.

    [75159:0328/142735.584924:ERROR:device_event_log_impl.cc(201)] [14:27:35.584] FIDO: fido_discovery_factory.cc:70 Cannot start caBLE because process is not self-responsible. Launch from Finder to fix.
    [75159:0328/142735.585025:ERROR:device_event_log_impl.cc(201)] [14:27:35.584] FIDO: fido_request_handler_base.cc:294 Cannot test Bluetooth power status because process is not self-responsible. Launch from Finder to fix.
    

    so no dialog prompt shows up

  15. arioooooo commented on Apr 8, 2025

    @arioooooo

    bump

  16. emiosproj commented on Jun 23, 2025

    @emiosproj

    bump, still an issue in electron 36.2.0. Can be tested with https://webauthn.io/

  17. pavlo-liapin commented on Dec 11, 2025

    @pavlo-liapin

    We've released an open-source add-on that fills in the missing behavior by calling Apple's lower-level APIs directly - https://github.com/vault12/electron-webauthn-mac.

    Just be aware that macOS requires a bit more setup than a browser environment - there are a few platform-specific configurations to add. Our README covers everything this step-by-step.

    Feedback, issue reports, and pull requests are very welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions