Commit Graph

619 Commits

Author SHA1 Message Date
Dain Nilsson 23a2a50e2f
Merge PR #113. 2021-03-17 11:07:50 +01:00
Enrik Berkhan 14ff4354b7 Serial Number: Python 2 compatibility as per review feedback. 2021-03-16 20:14:38 +01:00
Enrik Berkhan ed5aa4cd07 Serial Number: Python style improvements from review feedback. 2021-03-16 20:03:34 +01:00
Enrik Berkhan 66132b7e0c Serial Number: rename getter serial() -> serial_number(). 2021-03-16 19:38:54 +01:00
Enrik Berkhan 730591e981 Serial Number: cosmetic cleanup. 2021-03-16 19:38:54 +01:00
Enrik Berkhan 271d929a37 Serial Number: improve native string handling and decoding. 2021-03-16 19:38:54 +01:00
Enrik Berkhan 48cd3ccc23 Serial Number: Return None instead of "".
Return `None` instead of empty string if there is no product name or
serial number. The same happens for certain errors like
UnicodeDecodeError.
2021-03-16 19:38:54 +01:00
Enrik Berkhan 71ba985b00 Trying to address flake8/black issues #3.
Now using correct black version.
2021-03-16 19:38:54 +01:00
Enrik Berkhan 17d9d95453 Trying to address flake8/black issues #2. 2021-03-16 19:38:54 +01:00
Enrik Berkhan 323fd846ea Trying to address flake8/black issues. 2021-03-16 19:38:54 +01:00
Enrik Berkhan 6bc40d1b6e USB HID: add product name and serial to descriptor.
Tested:

 - Linux

 - Windows

 - MacOS

 - OpenBSD

 - FreeBSD (needs updated uhid-freebsd)
   (product/serial number OK, but fragmented CTAP messages did not work
   in my VM setup?)
2021-03-16 19:38:54 +01:00
Dain Nilsson ce19ba598a
Don't use enum.auto (Python 2). 2021-03-16 14:59:59 +01:00
Dain Nilsson d5ce10f771
Add is_supported to easier check for feature support. 2021-03-15 15:24:42 +01:00
Dain Nilsson bd72e7aaab
Don't use new GET PIN TOKEN without permissions. 2021-02-22 11:40:33 +01:00
Dain Nilsson e9e56457d7
More UV updates.
- Sync CTAP error codes from spec.
- Forward event and on_keepalive to ClientPin for get_uv_token.
2021-02-21 13:53:18 +01:00
Dain Nilsson b68b660b87
Update UV handling in Fido2Client. 2021-02-20 18:39:57 +01:00
Dain Nilsson f29398e0c7
Handle listing when no credentials exist. 2021-02-20 18:39:32 +01:00
Dain Nilsson b1503b0358
Update pipfiles. 2021-02-16 08:53:55 +01:00
Dain Nilsson 2e3224d7a8
Skip tests on older Cryptography versions. 2021-02-16 08:41:30 +01:00
Dain Nilsson 6072d7002e
Bump version. 2021-02-03 10:15:44 +01:00
Dain Nilsson 06ed6116c7
Prepare 0.9.1 2021-02-03 09:53:53 +01:00
Dain Nilsson 9c0d468419
Refactor webauthn classes.
- More dataclasses.
- Move binary data classes from ctap2 to webauthn.
- Separate (ctap) AttestationResponse from AttestationObject.
2021-02-03 08:36:28 +01:00
Dain Nilsson e289d58f6d
Update server example for poetry. 2021-02-02 13:11:45 +01:00
Dain Nilsson a64b1caf1b
More Python 3.
- More datatypes
- More typing
- Use IntFlag
2021-02-01 17:13:00 +01:00
Dain Nilsson d697287e6b
Some Python 3 improvements.
- Remove (object): from classes.
 - Use dataclasses instead of namedtuple.
 - Add some types.
2021-01-31 20:59:34 +01:00
Dain Nilsson 525550120c
Replace binascii with bytes.fromhex and .hex(). 2021-01-31 17:00:57 +01:00
Dain Nilsson 1c45c611fb
Remove __future__ imports. 2021-01-31 16:36:26 +01:00
Dain Nilsson 6749f8cfe9
Remove six. 2021-01-31 16:29:05 +01:00
Dain Nilsson 28bbf0fd73
Add missing error codes. 2021-01-31 15:58:11 +01:00
Dain Nilsson b11b9f4647
Add missing error codes. 2021-01-31 15:52:47 +01:00
Dain Nilsson 55fc2033cd
More Poetry. 2021-01-29 09:20:27 +01:00
Dain Nilsson b2bdfd191d
Remove Python 2 from debian. 2021-01-20 20:28:27 +01:00
Dain Nilsson 88124589cb
Update GitHub Actions to use poetry. 2021-01-20 16:50:05 +01:00
Dain Nilsson 42de497e17
More poetry. 2021-01-20 16:49:35 +01:00
Dain Nilsson 69970e301e
Add mypy. 2021-01-20 15:37:27 +01:00
Dain Nilsson 450c70d525
Start migration to Poetry. 2021-01-20 15:03:10 +01:00
Dain Nilsson 091277c623
Update pre-commit hooks. 2021-01-20 14:01:54 +01:00
Dain Nilsson 63c3d8e360
Bump version. 2021-01-20 10:58:57 +01:00
Dain Nilsson 3ee0104351
Prepare 0.9.0 release. 2021-01-20 10:45:43 +01:00
Dain Nilsson ac90526f1e
Update Pipfiles. 2021-01-20 10:36:26 +01:00
Dain Nilsson 38ba794cf3
Don't use PermissionError (not available on Python 2) 2021-01-20 09:34:43 +01:00
Dain Nilsson 6e52bde80e
Clean up HID logging. 2021-01-20 09:15:52 +01:00
Dain Nilsson 733c830326
Update NEWS. 2021-01-20 08:55:23 +01:00
Dain Nilsson 3a9bd6339f
Use namedtuple for AttestationResult. 2021-01-20 08:55:02 +01:00
Dain Nilsson 851012d29a
Mac: Don't log errors for non-CTAP devices in list_devices. 2021-01-15 09:33:21 +01:00
Dain Nilsson 244de4ddb7
Add find_library workaround for Big Sur. 2021-01-14 09:53:23 +01:00
Dain Nilsson a1ec5b3ee7
Add verify_attestation example. 2021-01-11 15:20:41 +01:00
Dain Nilsson 1fe7864317
Make attestation verification behavior pluggable. 2021-01-11 14:42:32 +01:00
Dain Nilsson 03031a5bad
Break up attestation into multiple files. 2020-12-29 21:17:08 +01:00
Dain Nilsson 24575bcd38
Add Apple Attestation. 2020-12-29 17:39:48 +01:00