You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In WebAuthn L3, we introduced new methods (toJSON, parseCreationOptionsFromJSON, and parseRequestOptionsFromJSON) for serializing responses and for deserializing requests.
This both improves the developer experience and also allows us to reference these methods directly in the CTAP specification for hybrid transports, instead of defining the encoding and structure there.
The text was updated successfully, but these errors were encountered:
Yeah to follow up from TPAC. I think we agreed that if we update the spec to say that the DigitalCredentialRequestOptions and DigitalCredential objects must be JSON serializable (else its an error), then i think we can close this without defining explicit methods.
And to provide a bit of context on the conversion. webauthn's PublicKeyCredentialRequestOptions needs this method because it is specified in a way which isn't naturally JSON serializable, so it needs explicit methods to define how to make the conversions. We can avoid that if we just specify our objects are JSON serializable from the start
timcappalli
changed the title
[spec] Add JSON (de)serialization methods
[spec] DigitalCredentialRequestOptions and DigitalCredential objects must be JSON serializable
Oct 7, 2024
In WebAuthn L3, we introduced new methods (
toJSON
,parseCreationOptionsFromJSON
, andparseRequestOptionsFromJSON
) for serializing responses and for deserializing requests.This both improves the developer experience and also allows us to reference these methods directly in the CTAP specification for hybrid transports, instead of defining the encoding and structure there.
The text was updated successfully, but these errors were encountered: