Commit Graph
76 Commits
Author SHA1 Message Date
Conor Patrick cfe49e7288 check cbor recursively to test all cbor 2021-01-27 21:58:42 -08:00
Conor Patrick 77c42f96c5 add tests for credProtect and both credProtect and hmac-secret 2021-01-27 20:59:58 -08:00
Nicolas IoossandConor Patrick 5ec00ecccd Make assertion verification not require field credential
The FIDO2 standard
(https://fidoalliance.org/specs/fido-v2.0-ps-20190130/fido-client-to-authenticator-protocol-v2.0-ps-20190130.html#authenticatorGetAssertion)
states that the field `credential` "may be omitted if the allowList has
exactly one Credential."

Allow `auth.credential` to be `None`.
2021-01-27 20:14:05 -08:00
Nicolas IoossandConor Patrick 681cfcb759 fix multiple values for argument 'options'
When running `tests/standard/fido2/test_getinfo.py` on Python 3.8, the
test fails with:

    TypeError: make_credential() got multiple values for argument 'options'

Move `options` into `FidoRequest` parameters in order to fix the
invocation of `device.sendMC`.
2021-01-27 20:13:27 -08:00
Conor Patrick f85743fafc use seedweed vectors for verifying dicekeys 2020-11-05 18:47:43 +01:00
Conor Patrick a7041a2244 add tests for dicekeys style backup 2020-10-18 16:52:52 -07:00
Conor Patrick d3ef22a342 use same reboot for solo B 2020-10-18 16:52:52 -07:00
Conor Patrick 6b984ecd4f add test for eddsa 2020-10-18 16:52:52 -07:00
Conor Patrick 12d13ca62a skip ctap1 test if credentialId is longer than 255 bytes 2020-10-18 16:52:52 -07:00
Conor Patrick 7ef0a1ed84 improve applicability of some tests 2020-08-28 15:03:38 -07:00
Conor Patrick 669fa9b419 test hmac-secret is different for uv=1 and uv=0 2020-03-28 12:20:48 -04:00
Conor Patrick 4645018982 test depth-first-search of creds and interleave RP's 2020-03-27 00:33:02 -04:00
Conor Patrick e5ebcab508 support reboot command for latest solo fw and better testing 2020-03-25 14:26:30 -04:00
Conor Patrick 0a97adc5ec fix bad_pinauth tests for real devices 2020-03-25 14:26:30 -04:00
Conor Patrick 8a5ccc79ae test enumeration more 2020-03-25 14:26:30 -04:00
Conor Patrick 456fe78613 more tests 2020-03-25 14:26:30 -04:00
Conor Patrick 2376dc7eb4 add credprotect and cred delete tests 2020-03-25 14:26:30 -04:00
Conor Patrick 9705b17d66 single account lookups do not have extra user details 2020-03-25 14:24:49 -04:00
Conor Patrick 7b40f86d8d check rpIdHash is same 2020-03-24 15:16:56 -04:00
Conor Patrick 3e09087074 check getnextassertions 2020-03-24 12:40:32 -04:00
Antoine FERRONandConor Patrick 3d93c5c502 Fix rk tests
Option rk is invalid in GetAssertion
All authentications need to be reversed related to credentials registrations
Some checks added
2020-03-23 18:18:03 -04:00
Radoslav GerganovandConor Patrick c5e51022b3 Add tests for the credential management commands
These commands are not standardized yet, hence the new tests are put in
the "vendor" package.
2020-03-21 10:34:19 -04:00
Conor Patrick 7881689b86 fix missing timeout in fido2 0.8.0+ 2020-02-27 15:29:45 -05:00
Conor Patrick cb4560f3ea latest solokeys returns 4 bytes 2019-10-28 09:55:29 -04:00
Conor Patrick 0579471001 allow larger range for count since it can be a random-valued increment 2019-10-28 09:42:28 -04:00