-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I don't understand how to create a ClientData in makeCredential #273
Comments
https://w3c.github.io/webauthn/#getAssertion step 5 has the same issue. |
To echo bzbarsky, as From the UA's perspective, it appears that I can get away with just declaring all instances of |
(Note that where OP mentions step 8 it is now step 7.) |
Looking at https://www.w3.org/TR/WebCryptoAPI/#sha, I think the hash Even if WebAuthn wants to use a more structured hash algorithm in the future, we can probably make @mwatson2 in case I've mis-read WebCrypto. |
You can't do a union of dictionary types, which is why webcrypto has |
Argh. A specialized dictionary type that combines all the members from the other types we care about then. In any case, |
I agree with JC's comment above. We could make this a whole lot simpler by just being a bit opinionated and saying hashAlg is a DOMString that's set to a WebCrypto "recognized algorithm name". That should be good enough for now. Even with arbitrary-length hashes, we'll probably see one or two sizes used by everyone for interop purposes. |
https://w3c.github.io/webauthn/#clientdata-hashalg says to
which are not the "recognized algorithm names" for these algorithms. Do you want to remove those aliases or say it's an "alg" value for an algorithm in the JSON Web Signature and Encryption Algorithms Registry ... that can be used without a key? |
Yuck. I knew I was forgetting something. You're right, we had flipped everything to use the JWA names at some point. I don't much care which one we use, since even WebCrypto has an appendix mapping JWK algorithm names to WebCrypto equivalents. @selfissued do you have an opinion here? |
https://w3c.github.io/webauthn/#dom-webauthentication-makecredential step 8 says:
ClientData is defined to be a dictionary like so:
Alright. So how do I go about creating one?
callerOrigin
?The text was updated successfully, but these errors were encountered: