Skip to content

Commit

Permalink
depend on new hmac-secret extension
Browse files Browse the repository at this point in the history
fixes #2

This commit was sponsored by Devin Prater, Greg Back, James C Abel,
and my other patrons.  If you want to join them, you can support my
work at https://glyph.im/patrons/.
  • Loading branch information
glyph committed Nov 28, 2024
1 parent 7b32a9f commit 14712f1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/tokenring/fidoclient.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
from __future__ import annotations

from typing import (
Callable,
Iterable,
Sequence,
TYPE_CHECKING,
)
import ctypes
from typing import TYPE_CHECKING, Callable, Iterable, Sequence

from fido2.client import Fido2Client, UserInteraction, WindowsClient
from fido2.ctap2.extensions import HmacSecretExtension
from fido2.hid import CtapHidDevice
import ctypes

try:
from fido2.pcsc import CtapPcscDevice
Expand Down Expand Up @@ -54,6 +50,7 @@ def enumerate_clients(
dev,
fake_url,
user_interaction=interaction,
extensions=[HmacSecretExtension(allow_hmac_secret=True)],
),
dev,
)
Expand Down

0 comments on commit 14712f1

Please sign in to comment.