Commit Graph

619 Commits

Author SHA1 Message Date
Dain Nilsson abe66f1385
Add enterprise attestation. 2022-05-18 09:40:34 +02:00
Dain Nilsson 70808bd093
Fix test broken by 8c1ca676c3. 2022-05-18 09:33:55 +02:00
Dain Nilsson 2a202d0e19
Merge PR #139. 2022-05-18 09:28:19 +02:00
Michael Gmelin 952b5b568b
Fix off-by-one.
Intentionally done in a very verbose way to make future changes
easier.
2022-05-18 09:27:36 +02:00
Michael Gmelin 1ce6df67d6
Correct length calculation for HIDIOCGRAWNAME and HIDIOCGRAWUNIQ 2022-05-18 09:27:35 +02:00
Michael Gmelin 1655099499
Fix and extend FreeBSD support
This unbreaks FreeBSD support that was damaged when removing
the dependency on uhid-freebsd in bd36cbcf35.

It also adds support for FreeBSD 13's optional hidraw(4) driver
that will become the default eventually.
2022-05-18 09:27:33 +02:00
Dain Nilsson ceb6deffe3
Remove debug print. 2022-05-18 09:18:34 +02:00
Dain Nilsson 8c1ca676c3
Use keyword-only arguments for event and on_keepalive. 2022-05-17 09:58:12 +02:00
Dain Nilsson 5d87ebe714
Set date for release. 2022-05-02 17:28:59 +02:00
Dain Nilsson 6c50014762
Add FIDO MDS3 example. 2022-05-02 17:20:32 +02:00
Dain Nilsson ad64143cb9
Fix wrong variable name. 2022-05-02 17:09:39 +02:00
Dain Nilsson fa5b2e3d2c
Include tests in sdist. 2022-05-02 16:38:32 +02:00
Dain Nilsson 8afa330918
Prepare 1.0.0rc1. 2022-05-02 13:09:43 +02:00
Dain Nilsson d995c21b97
Update public_suffix_list. 2022-04-27 10:15:30 +02:00
Dain Nilsson db24c8b6bf
Fix outdated examples. 2022-04-26 17:37:33 +02:00
Dain Nilsson a046a5a9e8
Update server example for CollectedClientData changes. 2022-04-26 16:49:42 +02:00
Dain Nilsson 452a02dd06
Drop legacy U2F code.
- Remove U2fClient implementation.
- Replace fido2.client.ClientData with fido2.webauthn.CollectedClientData.
- Move verify_app_id from fido2.rpid to fido2.client.
2022-04-26 16:43:44 +02:00
Dain Nilsson 77b7fb6990
Bump minimum dependency versions. 2022-04-25 13:18:34 +02:00
Dain Nilsson 30ee871c3a
Fix: Use RFC1951 DEFLATE for large blobs. 2022-04-25 12:42:05 +02:00
Dain Nilsson 221b822b12
Use unittest.mock instead of mock. 2022-04-25 12:32:40 +02:00
Dain Nilsson 69ad253dc9
Minor cleanups in README and NEWS. 2022-04-25 10:58:04 +02:00
Dain Nilsson 31148ab930
Add Aaguid class. 2022-04-22 17:14:03 +02:00
Dain Nilsson 966e38ee72
Add metadata filtering. 2022-04-22 15:47:19 +02:00
Dain Nilsson 1d7e2b5a5e
Make dataclasses immutable. 2022-04-22 15:23:57 +02:00
Dain Nilsson 37224ea93c
Enable postponed evaluation of annotations. 2022-04-22 09:02:37 +02:00
Dain Nilsson 53a32a4412
Add mds3 support. 2022-04-21 14:53:59 +02:00
Dain Nilsson 7e77545e36
Move AttestationVerifier from server to attestation. 2022-04-21 13:02:33 +02:00
Dain Nilsson f18f815a47
Drop support for Python 3.6 (EOL). 2022-04-21 11:25:44 +02:00
Dain Nilsson 7985a4966a
Update examples. 2022-04-21 09:57:36 +02:00
Dain Nilsson 90d0f63379
Update server example. 2022-04-20 11:23:59 +02:00
Dain Nilsson f2237d4f65
Use _DataClassMapping for CTAP2 CBOR maps. 2022-04-20 11:14:38 +02:00
Dain Nilsson 0e961839f1
Refactor WebAuthn data classes.
Breaking: The order of 'name' and 'id' arguments has been swapped in the
RP and User Entity classes.
2022-04-19 09:54:43 +02:00
Dain Nilsson c77d30d456
Fix platform specific type checking. 2022-04-15 13:46:14 +02:00
Dain Nilsson 0436ab9026
Add more type hints. 2022-04-15 13:14:33 +02:00
Dain Nilsson 15c9e37534
Update pre-commit hooks. 2022-04-15 13:14:19 +02:00
Dain Nilsson d2a0d71be6
Fix logging when allowList is None. 2022-04-15 11:43:17 +02:00
Dain Nilsson fd30409b03
Improve type safety. 2022-03-23 17:41:37 +01:00
Dain Nilsson 83625ddf39
Make ClientPin.get_uv_retries return a single int. 2022-03-02 13:12:46 +01:00
Dain Nilsson 15d3107c5e
AttestationVerifier.ca_lookup now returns single certificate. 2022-03-02 13:08:13 +01:00
Dain Nilsson 7c46413675
Handle logging of register_begin with no creds. 2022-02-28 15:39:19 +01:00
Dain Nilsson 9926168e76
More logging to client, server and ctap2 classes. 2022-02-28 15:39:18 +01:00
Dain Nilsson f9090c8e1e
Improve logging in hid and pcsc.
- Don't repeat the same device failures multiple times.
- Better separation of log levels.
2022-02-28 15:39:17 +01:00
Dain Nilsson 18968a99da
Handle optional RP ID in make_credential. 2022-02-28 15:37:45 +01:00
Dain Nilsson 36ea6fcc9d
Update WebAuthn data classes for Level 2. 2022-02-28 15:37:44 +01:00
Dain Nilsson b039820fad
Merge branch 'master' into next. 2022-02-28 13:21:42 +01:00
Dain Nilsson dd5662ca7b
Start registration/authentication from button (fix #134).
This is required for the example server to work in Safari.
2022-02-28 12:21:10 +01:00
Dain Nilsson 80e79cc048
Update pre-commit hooks
- Don't run pre-commit on Py <= 3.6
- Remove unavailable python versions from Actions
2022-02-18 18:26:59 +01:00
Dain Nilsson 8f78af003d
Bump cryptography version range. 2022-01-24 14:31:24 +01:00
Dain Nilsson 58471d4af1
Bump version. 2021-11-09 12:26:29 +01:00
Dain Nilsson 5cd89c999a
Prepare 0.9.3. 2021-11-09 12:15:13 +01:00