Skip to content

Commit 24a2a72

Browse files
committed
Upgraded to fido==2.0.0
1 parent d9dbf3b commit 24a2a72

File tree

5 files changed

+23
-10
lines changed

5 files changed

+23
-10
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## v2.0.0
2+
3+
* Added Django 5.1, Django 5.2 to tests
4+
* Added: Python 3.12, Python 3.13 to tests
5+
* Upgrade fido2 to v2.0.0
6+
17
## v1.2.7
28

39
* Fix: issue if the user isn't defined by username field #25.

example/test_app/soft_webauthn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def create(self, options, origin):
8282

8383
return {
8484
'id': urlsafe_b64encode(self.credential_id).decode("utf8"),
85-
'rawId': self.credential_id.decode("latin-1"),
85+
'rawId': urlsafe_b64encode(self.credential_id).decode("utf8"),
8686
'response': {
8787
'clientDataJSON': urlsafe_b64encode(json.dumps(client_data).encode("utf8")).decode("ascii"),
8888
'attestationObject': urlsafe_b64encode(cbor.encode(attestation_object)).decode("utf8")

requirements_test.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ coverage
22
tox
33
ua-parser
44
user-agents
5-
fido2 == 1.1.1

setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name='django-passkeys',
7-
version='1.2.7',
7+
version='2.0.0b1',
88
description='A Django Authentication Backend for Passkeys',
99
long_description=open("README.md").read(),
1010
long_description_content_type="text/markdown",
@@ -18,7 +18,7 @@
1818
'django >= 2.0',
1919
'ua-parser',
2020
'user-agents',
21-
'fido2 == 1.1.1',
21+
'fido2>=1.1.1,<2.1.0',
2222
],
2323
python_requires=">=3.7",
2424
include_package_data=True,
@@ -38,6 +38,8 @@
3838
"Framework :: Django :: 4.1",
3939
"Framework :: Django :: 4.2",
4040
"Framework :: Django :: 5.0",
41+
"Framework :: Django :: 5.1",
42+
"Framework :: Django :: 5.2",
4143
"Intended Audience :: Developers",
4244
"Operating System :: OS Independent",
4345
"Programming Language :: Python",
@@ -47,6 +49,8 @@
4749
"Programming Language :: Python :: 3.9",
4850
"Programming Language :: Python :: 3.10",
4951
"Programming Language :: Python :: 3.11",
52+
"Programming Language :: Python :: 3.12",
53+
"Programming Language :: Python :: 3.13",
5054
"Topic :: Software Development :: Libraries :: Python Modules",
5155
]
5256
)

tox.ini

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
[tox]
22
envlist=
33
#docs,
4-
py37-django{20,21,22,32},
5-
py38-django{22,32,40,41,42},
6-
py39-django{22,32,40,41,42},
7-
py310-django{22,32,40,41,42,50,51},
8-
py311-django{22,32,40,41,42,50,51},
9-
py312-django{41,42,50,51},
4+
py37-django{20,21,22,32},fido1,
5+
py38-django{22,32,40,41,42},fido2,
6+
py39-django{22,32,40,41,42},fido2,
7+
py310-django{22,32,40,41,42,50,51,52},fido2,
8+
py311-django{22,32,40,41,42,50,51,52},fido2,
9+
py312-django{41,42,50,51,52},fido2,
10+
py313-django{42,50,51,52},fido2,
1011

1112

1213
[testenv]
1314
changedir=
1415
example/
1516
deps =
17+
fido1: fido2==1.1.2
18+
fido2: fido2==2.0.0
1619
django22: django>=2.2,<2.3
1720
django32: django>=3.2,<3.3
1821
django40: django>=4.0,<4.1
1922
django41: django>=4.1,<4.2
2023
django42: django>=4.2,<4.3
2124
django50: django>=5.0,<5.1
2225
django51: django>=5.1,<5.2
26+
django52: django>=5.2,<5.3
2327
ua-parser
2428
user-agents
2529
django-sslserver

0 commit comments

Comments
 (0)