Ready for Developer Testing: Web Authentication API: JSON serialization methods

167 views
Skip to first unread message

Martin Kreichgauer

unread,
Jun 26, 2024, 2:29:26 PMJun 26
to blink-dev

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

TAG review

None

TAG review status

Not applicable

Risks



Interoperability and Compatibility

None



Gecko: Shipped/Shipping (https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/toJSON#browser_compatibility)

WebKit: No signal

Web developers: Positive (https://github.com/github/webauthn-json) webauthn-json is a widely used polyfill for this API maintained by Github.

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?

None



Goals for experimentation



Ongoing technical constraints

None



Debuggability

None



Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, ChromeOS, Android, and Android WebView)?

Yes

This feature is implemented in Blink renderer code and shipping on all platforms.



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

Yes

https://wpt.fyi/results/webauthn/public-key-credential-creation-options-from-json.https.window.html https://wpt.fyi/results/webauthn/public-key-credential-request-options-from-json.https.window.html https://wpt.fyi/results/webauthn/public-key-credential-to-json.https.window.html



DevTrial instructions

https://docs.google.com/document/d/e/2PACX-1vSl4jywfU4xD3fkWrC-T5hHI79xs90oOq9tVSx4M63WkcI-wuk-nnFlPlDIAttrpTEd5BbXABJnDuxT/pub

Flag name on chrome://flags

enable-experimental-web-platform-features

Finch feature name

WebAuthenticationJSONSerialization

Requires code in //chrome?

False

Tracking bug

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

Estimated milestones

DevTrial on desktop128
DevTrial on Android128


Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5141695044255744

Links to previous Intent discussions

Intent to prototype: https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAB%3DfcEbBz4a%2BEE-KbbRDkEexDON8hCfCC-saD600J7fo9J3jZg%40mail.gmail.com

This intent message was generated by Chrome Platform Status.

Mike Taylor

unread,
Jul 10, 2024, 11:34:42 AM (8 days ago) Jul 10
to Martin Kreichgauer, blink-dev

Hi Martin,

Is this intended to be an Intent to Ship, or dev trial?

thanks,
Mike

--
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%3DfcEZFNdKypxjgMis0WGNVHs7hA6hw3UAXynKDs7ig0bPcgg%40mail.gmail.com.

Martin Kreichgauer

unread,
Jul 12, 2024, 7:09:28 PM (5 days ago) Jul 12
to Mike Taylor, blink-dev
Dev trial, since that's what the process/tool suggested. But there's at least one other shipped implementation out there already, and the spec is fairly settled, so I think we're ready to proceed to I2S. I'll send that out shortly.
Reply all
Reply to author
Forward
0 new messages