Intent to Prototype: Web Authentication API: JSON serialization methods

159 views
Skip to first unread message

Martin Kreichgauer

unread,
Dec 14, 2022, 5:04:04 PM12/14/22
to blink-dev, chrome-webauthn

Contact emails

mart...@google.com

Explainer

https://github.com/w3c/webauthn/wiki/Explainer:-JSON-Serialization-Methods

Specification

https://w3c.github.io/webauthn/#publickeycredential

Summary

The WebAuthn PublicKeyCredential.toJSON(), parseCreationOptionsFromJSON() and parseRequestOptionsFromJSON() methods let developers serialize a WebAuthn response into a JSON object or deserialize a WebAuthn request object from its JSON representation.



Blink component

Blink>WebAuthentication

Motivation

Developers frequently complain that WebAuthn request and response objects cannot easily be serialized in order to pass them between a server and client in a HTTP request. We're therefore adding methods to the API that permit deserialization of WebAuthn requests from and serialization of responses to JSON.



Initial public proposal



TAG review



TAG review status

Not applicable

Risks



Interoperability and Compatibility



Gecko: No signal

WebKit: No signal

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?



Debuggability



Is this feature fully tested by web-platform-tests?

No

Flag name



Requires code in //chrome?

False

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1401128

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5141695044255744

This intent message was generated by Chrome Platform Status.

Rick Byers

unread,
Dec 16, 2022, 3:54:23 PM12/16/22
to Martin Kreichgauer, blink-dev, chrome-webauthn
Sounds good, thanks! Not needed for I2P, but for an upcoming I2S it would be good to have a link or two under "web developer signals" to back up the "developers frequentlyc complain" argument.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAB%3DfcEbBz4a%2BEE-KbbRDkEexDON8hCfCC-saD600J7fo9J3jZg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages