From 8fc21391b2414157ca4f0f52fe051764027aef8a Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Mon, 24 Jun 2024 15:28:43 -0700 Subject: [PATCH 1/2] Add "smart-card" transport --- webauthn/helpers/structs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/webauthn/helpers/structs.py b/webauthn/helpers/structs.py index 75bb9cb..11fae6d 100644 --- a/webauthn/helpers/structs.py +++ b/webauthn/helpers/structs.py @@ -29,6 +29,7 @@ class AuthenticatorTransport(str, Enum): USB = "usb" NFC = "nfc" BLE = "ble" + SMART_CARD = "smart-card" INTERNAL = "internal" CABLE = "cable" HYBRID = "hybrid" From 6a883d0160f4f999209ef155da839831b1a4a41b Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Mon, 24 Jun 2024 15:29:19 -0700 Subject: [PATCH 2/2] Add some formatting changes in same file --- webauthn/helpers/structs.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webauthn/helpers/structs.py b/webauthn/helpers/structs.py index 11fae6d..b36a4a8 100644 --- a/webauthn/helpers/structs.py +++ b/webauthn/helpers/structs.py @@ -248,9 +248,9 @@ class AuthenticatorSelectionCriteria: authenticator_attachment: Optional[AuthenticatorAttachment] = None resident_key: Optional[ResidentKeyRequirement] = None require_resident_key: Optional[bool] = False - user_verification: Optional[ - UserVerificationRequirement - ] = UserVerificationRequirement.PREFERRED + user_verification: Optional[UserVerificationRequirement] = ( + UserVerificationRequirement.PREFERRED + ) @dataclass @@ -470,9 +470,9 @@ class PublicKeyCredentialRequestOptions: timeout: Optional[int] = None rp_id: Optional[str] = None allow_credentials: Optional[List[PublicKeyCredentialDescriptor]] = None - user_verification: Optional[ - UserVerificationRequirement - ] = UserVerificationRequirement.PREFERRED + user_verification: Optional[UserVerificationRequirement] = ( + UserVerificationRequirement.PREFERRED + ) @dataclass