CTAP2-test-tool
CTAP2-test-tool copied to clipboard
Test item MakeCredentialCredParamsTest
test item: MakeCredentialCredParamsTest
{
"description": "Tests entries in the credential parameters list.",
"error_message": "Falsely rejected cred params list with 1 good and 1 bad element.",
"id": "make_credential_cred_params",
"observations": [
"A prompt was expected, but not performed. Sometimes it is just not recognized if performed too fast.",
"The failing error code is CTAP2_ERR_UNSUPPORTED_ALGORITHM
."
],
"result": "fail",
"tags": []
},
Webauthn specs says below in https://www.w3.org/TR/webauthn-2/#dom-publickeycredentialdescriptor-type
client platforms MUST ignore any PublicKeyCredentialDescriptor with an unknown type.
ctap2 spec has description for pubKeyCredParams(0x04) of authenticatorMakeCredential's command
PublicKeyCredentialParameters' algorithm identifiers are values that SHOULD be registered in the IANA COSE Algorithms registry
So authenticator should not accept type="non-existing type" with the alg value of COSE.