Skip to content

WebAuthn FIDO/FIDO2 Support #24573

@mahnunchik

Description

@mahnunchik

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

  • Electron Version:
    • 8.4.0, 9, 10, (added 07.04.2021) 11, 12
  • Operating System:
    • macOS 10.15.5
  • Last Known Working Electron version:
    • -

It is not clear how to make WebAuthn works in Electron app if page is local not from webserver.

Expected Behavior

WebAuthn works if page loaded from standard and secure scheme: https://www.electronjs.org/docs/api/protocol#protocolregisterschemesasprivilegedcustomschemes

Actual Behavior

I've faced with the following error:

Uncaught (in promise) DOMException: Public-key credentials are only available to HTTPS origin or HTTP origins that fall under 'localhost'. See https://crbug.com/824383

To Reproduce

https://gist.github.com/mahnunchik/165a117564ebc632a3723d2666f5024c

Additional Information

Related issues:

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