electron: WebAuthn authentication prompt does not work on macOS

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:

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 13
  • Comments: 16 (4 by maintainers)

Most upvoted comments

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

Still an issue

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