- commit
- a33f743db6aac0f5753c9e2fb3bc4e051bc52e36
- parent
- 44be1fd05bad2783daa8d6a85aa6a25417e30093
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-05-21 13:30
update to fido2 2.x see https://github.com/Yubico/python-fido2/blob/main/doc/Migration_1-2.adoc
Diffstat
| M | .github/workflows/main.yml | 2 | +- |
| M | mfa/methods/fido2.py | 2 | -- |
| M | pyproject.toml | 2 | +- |
3 files changed, 2 insertions, 4 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
@@ -14,7 +14,7 @@ jobs: 14 14 strategy: 15 15 matrix: 16 16 include:17 -1 - python: '3.9'-1 17 - python: '3.10' 18 18 django: '4.2' 19 19 - python: '3.13' 20 20 django: '5.2'
diff --git a/mfa/methods/fido2.py b/mfa/methods/fido2.py
@@ -1,6 +1,5 @@ 1 1 import json 2 23 -1 from fido2.features import webauthn_json_mapping4 3 from fido2.server import Fido2Server 5 4 from fido2.utils import websafe_decode 6 5 from fido2.utils import websafe_encode @@ -12,7 +11,6 @@ from .. import settings 12 11 13 12 name = 'FIDO2' 14 1315 -1 webauthn_json_mapping.enabled = True16 14 fido2 = Fido2Server( 17 15 PublicKeyCredentialRpEntity(id=settings.DOMAIN, name=settings.SITE_TITLE), 18 16 )
diff --git a/pyproject.toml b/pyproject.toml
@@ -24,7 +24,7 @@ classifiers = [ 24 24 ] 25 25 dependencies = [ 26 26 "pyotp",27 -1 "fido2>=1.2.0,<2.0",-1 27 "fido2>=2.0,<3.0", 28 28 # https://github.com/lincolnloop/python-qrcode/issues/317 29 29 "qrcode>=7.1,<7.4", 30 30 "django>=3.2",