WebauthnAuthenticationCollector accepted "webauthn.create" and
"webauthn.get" in either ceremony, so the client data of an
authentication was accepted at a registration, and the client data of a
registration at an authentication. Webauthn Level 3 binds each ceremony
to its type: "Verify that the value of C.type is webauthn.create."
(section 7.1) and "Verify that the value of C.type is the string
webauthn.get." (section 7.2). The validators compared the type with
their ceremony until the ceremony steps of 4.8.0, whose collector
accepts both values.
The collector now expects "webauthn.create" when the options are
PublicKeyCredentialCreationOptions and "webauthn.get" otherwise, and
throws "The client data type is not "webauthn.create"." or "The client
data type is not "webauthn.get".", the messages of the validators before
4.8.0. supportedTypes() still returns both values, so
ClientDataCollectorManager keeps selecting this collector for either
type, and the collector refuses the type of the other ceremony.
The FIDO Conformance Tools 1.9.3.1 check it in
Server-ServerAuthenticatorAttestationResponse-Resp-2 F-5 and
Server-ServerAuthenticatorAssertionResponse-Resp-2 F-5.
Closes #986