[webauthn] Extensions should specify partial dictionaries that modify AuthenticationExtensionsClient{Inputs, Outputs}JSON (#1968)

jschanck has just created a new issue for https://github.com/w3c/webauthn:

== Extensions should specify partial dictionaries that modify AuthenticationExtensionsClient{Inputs, Outputs}JSON ==
Section 5.1.9 on the `parseCreationOptionsFromJSON` method states that
> any [DOMString](https://webidl.spec.whatwg.org/#idl-DOMString) attributes in [PublicKeyCredentialCreationOptionsJSON](https://w3c.github.io/webauthn/#dictdef-publickeycredentialcreationoptionsjson) that correspond to [buffer source type](https://webidl.spec.whatwg.org/#dfn-buffer-source-type) attributes in [PublicKeyCredentialCreationOptions](https://w3c.github.io/webauthn/#dictdef-publickeycredentialcreationoptions). This conversion MUST also apply to any [client extension inputs](https://w3c.github.io/webauthn/#client-extension-input) processed by the [client](https://w3c.github.io/webauthn/#client).

While the expected behavior is reasonably clear, `AuthenticationExtensionsClientInputsJSON` is defined as the empty dictionary and no extensions currently modify it.

## Proposed Change

Every partial dictionary that modifies  `AuthenticationExtensionsClientInputs` or `AuthenticationExtensionsClientOutputs` should have a matching partial dictionary that modifies  `AuthenticationExtensionsClientInputsJSON` or `AuthenticationExtensionsClientOutputsJSON`.

Also, as "the conversion" happens before extensions are "processed by the client", the second sentence quoted above should be something like:
> This conversion MUST also apply to any [client extension inputs](https://w3c.github.io/webauthn/#client-extension-input) supported by the [client](https://w3c.github.io/webauthn/#client).

Please view or discuss this issue at https://github.com/w3c/webauthn/issues/1968 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 20 September 2023 15:58:25 UTC