gecko-dev/dom/webauthn/tests
J.C. Jones 95d83ac876 Bug 1387820 - WebAuthn WD-05 Get Assertion Data Fix r=keeler
The WebAuthn WD-05 specification's Get Assertion method defines the returned
AuthenticatorAssertionResponse as providing ClientData, AuthenticatorData, and
the Signature from the Authenticator. Our implementation is incorrectly setting
AuthenticatorData and Signature:

AuthenticatorData as a structure is intended to mirror the structure from
the AuthenticatorData [1] section of the Attestation CBOR Object [2] in the
MakeCredential method, which we weren't doing _at all_. This is clarified in
the editor's draft of the specification, soon to be WD-06.

Signature for U2F Authenticators is defined as the "attestation signature", [3]
which is under-specified and we assumed would be the raw output from the U2F
Authenticator [4]. This should instead be the raw ANSI X9.62 signature with no
additional bytes. [5]

[1] https://www.w3.org/TR/2017/WD-webauthn-20170505/#sec-authenticator-data
[2] https://www.w3.org/TR/2017/WD-webauthn-20170505/#sec-attestation-data
[3] https://www.w3.org/TR/2017/WD-webauthn-20170505/#fido-u2f-attestation
[4] https://lists.w3.org/Archives/Public/public-webauthn/2017Aug/0078.html
[5] https://bugzilla.mozilla.org/show_bug.cgi?id=1387820#c4

MozReview-Commit-ID: DTIOILfS4pK

--HG--
extra : rebase_source : 996c10b2f0359b34f45cf370bb8483c2dc9d3b6e
2017-08-09 20:05:23 -07:00
..
browser Bug 1265472 - Add Telemetry to Web Authentication r=francois,keeler datareview=francois 2017-08-09 12:22:48 -07:00
cbor Bug 1380529 - Use CBOR for the Create Credential WebAuthn call (2/3) r=ttaubert 2017-07-13 18:12:50 -07:00
pkijs
mochitest.ini Bug 1265472 - Add Telemetry to Web Authentication r=francois,keeler datareview=francois 2017-08-09 12:22:48 -07:00
test_webauthn_get_assertion.html bug 1332681 - part 4/4 - convert authentication.getAssertion to credentials.get r=jcj,qdot 2017-05-23 14:55:10 -07:00
test_webauthn_loopback.html Bug 1387820 - WebAuthn WD-05 Get Assertion Data Fix r=keeler 2017-08-09 20:05:23 -07:00
test_webauthn_make_credential.html Bug 1380529 - Only permit "ES256" as pubkey type for WebAuthn (3/3) r=ttaubert 2017-07-14 09:57:52 -07:00
test_webauthn_no_token.html Bug 1380529 - Only permit "ES256" as pubkey type for WebAuthn (3/3) r=ttaubert 2017-07-14 09:57:52 -07:00
test_webauthn_sameorigin.html Bug 1380529 - Only permit "ES256" as pubkey type for WebAuthn (3/3) r=ttaubert 2017-07-14 09:57:52 -07:00
u2futil.js Bug 1387820 - WebAuthn WD-05 Get Assertion Data Fix r=keeler 2017-08-09 20:05:23 -07:00