Closed Bug 1823782 Opened 2 years ago Closed 1 year ago

Implement WebAuthn serialization methods

Categories

(Core :: DOM: Web Authentication, enhancement, P3)

Firefox 111
enhancement

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- fixed

People

(Reporter: code, Assigned: keeler)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

Steps to reproduce:

Try to use PublicKeyCredential.parseCreationOptionsFromJSON(…) or PublicKeyCredential.parseRequestOptionsFromJSON(…).

From the spec:
https://w3c.github.io/webauthn/#sctn-parseCreationOptionsFromJSON
https://w3c.github.io/webauthn/#sctn-parseRequestOptionsFromJSON

Expected results:

It would be really useful to see these methods implemented, as basically every site using WebAuthn has to deserialize requests and serializes responses for the server.

Right now, I maintain a library ^1 that implements this functionality, but it's tricky to keep up with the spec and browser compatibilities over time.

The API methods work for RPs out of the box, with no additional client code, and are much more future-proof. It would be very beneficial for the ecosystem for these to be available in browsers sooner rather than later, so that sites and WebAuthn implementation guides don't hardcode forwards-incompatible assumptions.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Web Authentication' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Web Authentication
Product: Firefox → Core
Assignee: nobody → jschanck
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P3
Attachment #9351131 - Attachment description: WIP: Bug 1823782 - implement webauthn serialization methods r?jschanck → Bug 1823782 - implement webauthn serialization methods r?jschanck
Assignee: jschanck → dkeeler
Pushed by dkeeler@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f5ff8837f4fd implement webauthn serialization methods r=jschanck,webidl,saschanaz,tschuster
Keywords: dev-doc-needed
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch

FF119 MDN docs work for this tracked in https://github.com/mdn/content/issues/29302

Regressions: 1864972
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: