w3c / webauthn

Web Authentication: An API for accessing Public Key Credentials
https://w3c.github.io/webauthn/
Other
1.19k stars 172 forks source link

JSON parsing should be on top of Infra primitives #2207

Open annevk opened 3 days ago

annevk commented 3 days ago

I suspect that most can be replaced by https://infra.spec.whatwg.org/#parse-json-bytes-to-an-infra-value. This will also require some changes to the following steps as they now have an Infra value. This should also allow for the removal of the notes as now this is all well-defined instead of somewhat hand-wavy.

timcappalli commented 3 days ago

This will also require some changes to the following steps

@annevk which steps are you referring to?

annevk commented 3 days ago

For instance in https://w3c.github.io/webauthn/#sctn-registering-a-new-credential steps 5/6 would be combined by instead calling into Infra. Then step 7 and such can no longer use the C.type syntax to refer to members. Instead you'll have to use

C["type"]

which will make it more consistent with other specifications.