trussed-dev / fido2-tests

Test suite for FIDO2, U2F, and other security key functions
Other
48 stars 38 forks source link

Remove "rk" option in test_resident_key_auth and test_user_info_returned #14

Closed andrewkozlik closed 4 years ago

andrewkozlik commented 4 years ago

The tests TestResidentKey::test_resident_key_auth and TestResidentKey::test_user_info_returned send an authenticatorGetAssertion request with the "rk" option set to true. According to https://fidoalliance.org/specs/fido-v2.0-ps-20190130/fido-client-to-authenticator-protocol-v2.0-ps-20190130.html#authenticatorGetAssertion the "rk" option is not valid for this command, because it's not listed in the options parameters table. According to step 5 the correct response to the request is therefore CTAP2_ERR_INVALID_OPTION.

The correct way to request usage of device-resident credentials is to send an empty allowList.