Skip to content

Commit

Permalink
Merge PR #240
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnilsson committed Nov 19, 2024
2 parents 2deef9b + d8ef0c9 commit 6e5bc05
Show file tree
Hide file tree
Showing 3 changed files with 570 additions and 193 deletions.
3 changes: 1 addition & 2 deletions examples/hmac_secret.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
from fido2.client import Fido2Client, WindowsClient
from fido2.ctap2.extensions import HmacSecretExtension
from exampleutils import CliInteraction
from functools import partial
import ctypes
import sys
import os
Expand Down Expand Up @@ -74,7 +73,7 @@ def enumerate_devices():
user_interaction=CliInteraction(),
# By default only the PRF extension is allowed, we need to explicitly
# configure the client to allow hmac-secret
extension_types=[partial(HmacSecretExtension, allow_hmac_secret=True)],
extensions=[HmacSecretExtension(allow_hmac_secret=True)],
)
if "hmac-secret" in client.info.extensions:
break
Expand Down
Loading

0 comments on commit 6e5bc05

Please sign in to comment.