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
required DOMString challenge; <<== should be ArrayBuffer or BufferSource ?
[...]
};
I think ArrayBuffer is more appropriate in ClientData than BufferSource, but I'm not sure, and I'm not sure it actually matters since ClientData is used internal-to-the-authnr in order to marshal info before hashing it.
The text was updated successfully, but these errors were encountered:
ClientData is, as you note, an internal structure that needs to be serialized and hashed. So we need to define what that serialization looks like. We have two choices:
Define these types as DOMString, and say they will be produced by encoding the appropriate quantity as base64.
Define these types as ArrayBuffer, in which case they will be serialized in the array literal notation, i.e. something like "{ challenge: [31, 41, 59, 26, 53, 58, 97, 93, 238, ...], ... }"
The first seems more readable and is more compact, so I went with that when fixing #61.
https://w3c.github.io/webauthn/#sec-client-data
I think ArrayBuffer is more appropriate in ClientData than BufferSource, but I'm not sure, and I'm not sure it actually matters since ClientData is used internal-to-the-authnr in order to marshal info before hashing it.
The text was updated successfully, but these errors were encountered: