Commit Graph

71 Commits

Author SHA1 Message Date
Dain Nilsson 36ddc05785
Update server example Pipfile.lock 2021-10-14 12:30:35 +02: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 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 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 b1503b0358
Update pipfiles. 2021-02-16 08:53:55 +01:00
Dain Nilsson a1ec5b3ee7
Add verify_attestation example. 2021-01-11 15:20:41 +01:00
Dain Nilsson 193d394c33
Cleanups and example improvements, 2020-10-30 16:15:53 +01:00
Dain Nilsson f1fe637064
Update Pipfiles. 2020-10-30 15:07:16 +01:00
Dain Nilsson d44a7d6d3e
Refactor extensions.
- Fido2Client optionally takes extension_types (default: all)
- Client make_credential and get_assertion now return objects containing
extension outputs.
2020-10-30 15:02:56 +01:00
Dain Nilsson 9dbdfd5354
UV token fixes. 2020-10-28 13:04:00 +01:00
Dain Nilsson 7452779197
Add large blob support. 2020-10-19 12:16:32 +02:00
Dain Nilsson d1005d4a1c
Expose remaining samples from FPEnrollmentContext. 2020-08-28 09:29:15 +02:00
Dain Nilsson 26291acdf8
Use longer names for permissions constants. 2020-08-27 08:39:11 +02:00
Dain Nilsson fdf8d50699
More complete PIN/UV permissions. 2020-08-27 08:39:01 +02:00
Dain Nilsson d2f6942e46
Update hmac-secret extension. 2020-08-27 08:38:56 +02:00
Dain Nilsson e413fd703b
Split PinProtocolV1 into ClientPin and PinProtocol. 2020-08-27 08:38:52 +02:00
Dain Nilsson 470ffc20bf
Print capture errors. 2020-08-27 08:38:46 +02:00
Dain Nilsson 8e1740c214
Add draft bio enrollment. 2020-08-27 08:38:40 +02:00
Dag Heyman ff0fc04f89
examples: turn off debug flag for server example
(this code may be copy pasted)
2020-06-12 14:31:34 +02:00
Dain Nilsson 5155c17862
Minor cleanups. 2020-02-12 10:25:45 +01:00
Dain Nilsson 1c8ba7f0e0
Don't verify attestation if preference is omitted. 2019-11-21 19:02:53 +01:00
Dain Nilsson 0521c94603
Update examples. 2019-11-18 16:03:52 +01:00
Dain Nilsson 06de9ac562
Add examples/resident_key.py example and fix bugs.
- Fix determining UV option in some cases, and handing no
allow_credentials in server.
2019-11-18 15:40:49 +01:00
Dain Nilsson 678e3cee62
Fix encoding/decoding of challenge.
- Use Fido2Server in examples/credential.py example.
2019-11-15 12:50:08 +01:00
Dain Nilsson 201a75b725
Minor refactoring. 2019-11-14 15:15:31 +01:00
Dain Nilsson 4043006314
Improve UserVerification handling. 2019-11-14 13:13:31 +01:00
Dain Nilsson fc3c56fc8b
Add WebAuthn data classes (breaking changes).
- New fido2.webauthn classes modeled after the W3C WebAuthn spec introduced.
- Method signatures for client and server classes changed.
- Fido2Client:
  - make_credential/get_assertion now take WebAuthn options objects.
- Fido2Server:
  - ATTESTATION, USER_VERIFICATION, and AUTHENTICATOR_ATTACHMENT enums
    have been replaced with fido2.webauthn classes.
  - RelyingParty has been replaced with PublicKeyCredentialRpEntity, and
    name is no longer optional.
  - Fido2Server.allowed_algorithms now contains a list of
    PublicKeyCredentialParameters instead of algorithm identifiers.
2019-11-13 13:22:47 +01:00
Dain Nilsson 022a8ad420
Add more docstrings. 2019-11-11 16:17:32 +01:00
Dain Nilsson 650a1c658f
Add WindowsClient.
- Replace modifications to Fido2Client with new WindowsClient class.
- Make WinAPI more python-fido2 agnostic.
- Update examples/credential.py to use WindowsClient when running
Windows.
2019-11-11 13:00:49 +01:00
Dain Nilsson a14d7e8ed1
Update Pipfiles. 2019-10-24 10:59:20 +02:00
Dain Nilsson 226b0021f1
Reformat with Black. 2019-10-01 09:25:29 +02:00
Dain Nilsson b8173f2bb5
Merge PR #63. 2019-09-09 15:15:50 +02:00
merlokk 9f36d19b64 ACR122U-SAM reader example 2019-09-09 12:44:57 +03:00
merlokk a600a78cb1 rename `use_ext_apdu` 2019-09-02 18:47:28 +03:00
merlokk a0cb5854d5 remove debug and set not to use ext apdu by default 2019-09-02 13:32:50 +03:00
merlokk ce95ffcd3c Merge branch 'master' of github.com:merlokk/python-fido2 into extended_apdu 2019-09-02 11:16:50 +03:00
Dain Nilsson bc13aa2b6b
Update example dependencies. 2019-09-02 09:42:06 +02:00
merlokk f96d9449de add extended apdu connection mode 2019-08-25 21:44:36 +03:00
dependabot[bot] b175e2a88d
Bump werkzeug from 0.15.2 to 0.15.3 in /examples/server
Bumps [werkzeug](https://github.com/pallets/werkzeug) from 0.15.2 to 0.15.3.
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/master/CHANGES.rst)
- [Commits](https://github.com/pallets/werkzeug/compare/0.15.2...0.15.3)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-22 07:32:47 +00:00
Dain Nilsson 2e4a95dcdb
Add hmac secret extension example. 2019-06-17 12:34:41 +02:00
Dain Nilsson 2f49c3a41e
Merge nfc and pcsc and rename to CtapPcscDevice. 2019-06-14 15:35:30 +02:00
Dain Nilsson 385ace5efe
Remove magic number from pcsc and reorder arguments. 2019-06-13 13:49:03 +02:00
Dain Nilsson 4c8d1f4c99
Rework NFC support. 2019-06-12 14:02:18 +02:00
Dain Nilsson eba61a75b8
Squash commit of PR #51. 2019-06-11 16:35:55 +02:00
Dain Nilsson 6230c6a83a
Allow all supported key algorithms by default. 2019-05-09 14:54:01 +02:00
Dain Nilsson 2c91d66a2e
Update examples/credential.py to better handle PIN. 2019-05-09 11:17:51 +02:00
Dain Nilsson f3adc940d2
Rename cbor loads/dumps and added decode (close #46). 2019-05-08 16:27:04 +02:00
Dain Nilsson d5ef865233
Update dependencies for server example. 2019-04-20 17:42:18 +02:00
Dain Nilsson 0aca70e632
Fix formatting. 2019-01-24 12:44:46 +01:00