96 Commits
Author SHA1 Message Date
Nicolas Stalder 591d3d2279 Put the GA test back to 10 credentials total 2022-03-07 22:48:58 +01:00
Nicolas Stalder f04d11aca2 Accommodate CTAP2.1 GetAssertion allowlist behaviour 2022-03-07 22:06:32 +01:00
Conor Patrick d23692da03 check user id strictly in the new rk test 2021-10-11 23:14:04 -05:00
Conor Patrick e6030d18c5 add rk-allow_list test 2021-10-07 22:10:06 -05:00
Conor Patrick 3f7893d8d1 call reset to make tests repeatable 2021-08-08 16:37:23 -07:00
Conor Patrick 3937ead984 fix other u2f tests needing a call polling authenticate 2021-08-07 17:23:26 -07:00
Conor Patrick 19d6405370 need to use a "call polling" method when waiting on button 2021-08-07 16:43:49 -07:00
Conor Patrick 48f56fd5ae make keepalive test wait for button press or timeout 2021-06-02 21:11:46 -07:00
Conor Patrick 18fcf5859a add test for ctaphid keepalive 2021-06-02 20:12:35 -07:00
Conor Patrick e6178a02f7 fix none independent tests 2021-04-22 15:33:17 -07:00
Conor Patrick 1b45e1e6b3 add fido2v1 tests and make credMgmt tests official 2021-04-22 15:33:17 -07:00
Conor Patrick 602e20aaa5 merge 2021-04-22 15:28:40 -07:00
Conor Patrick a7d5def4c2 Update conftest.py 2021-04-22 15:27:27 -07:00
Conor Patrick d685eb3af7 calculate pin auth independently for each test 2021-04-22 15:27:13 -07:00
Conor Patrick 349039bd6d A bunch of tweaks to make nfc more robust
There could be random issues that could pop up.
1. Reader powers off card before next test, meaning it needs to be selected again.
2. Reader powers off card before next test, meaning volatile variables like pinAuth need to be recalculated.
3. Sometimes the reader disconnects and should be reconnected with generous timing.
2021-04-22 15:27:13 -07:00
Conor Patrick 083716754c more tests 2021-03-26 01:42:37 -07:00
Conor Patrick 762668dd7e make more strict tests on user info returned for rk credentials 2021-03-22 19:50:12 -07:00
Conor Patrick 7faf7cacc5 use different RP's for hmac-secret tests so they don't mix 2021-03-22 19:49:46 -07:00
Conor Patrick 8a93466ce2 test userId is returned for RK credential even when it's specified in allowList 2021-02-14 20:26:03 -08:00
Conor Patrick b7fc538af8 run black format on everything 2021-02-14 20:26:03 -08:00
Conor Patrick cbc31b3f59 check cbor recursively to test all cbor 2021-01-29 15:28:44 -08:00
Conor Patrick 04c60165f9 add tests for credProtect and both credProtect and hmac-secret 2021-01-29 15:28:44 -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