Skip to content

Commit 735c005

Browse files
committed
Dropped support django2.0,2.1,3.0,3.1,4.0,4.1,5.0,5.1
1 parent 9472590 commit 735c005

File tree

7 files changed

+24
-28
lines changed

7 files changed

+24
-28
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
* `check_passkeys.js` -> `passkeys/check.js`
66
* `passkeys.js` -> `passkeys/passkeys.js`
77
* `modal.html` -> `passkeys/modal.html`
8+
* Dropped Support for django-2.0, django-2.1, django-4.0, django-4.1, django-5.0, django-5.1, but django 2.2, 3.2.
89
* New: DRF API module (`passkeys.api`) — REST endpoints for passkey registration, authentication, and management
910
* New: Pluggable token backend — auto-detects SimpleJWT, DRF TokenAuth, or session-based auth
1011
* New: Service layer (`passkeys.api.service`) — session-independent FIDO2 logic with signed state tokens
1112
* New: Optional install via `pip install django-passkeys[drf]` or `pip install django-passkeys[drf-jwt]`
12-
* Added: Support for Google new WebAuthn immediate mediation API (with allow/disallow password login) for Android Credential Creation. This allows users to create resident keys on Android devices and use them for passwordless authentication. for more details check [Google's announcement](https://web.dev/credential-management-immediate-api/).
13+
* Added: Support for Google new WebAuthn immediate mediation API (with allow/disallow password login) for Chromium Browser. for more details check [Google's announcement](https://developer.chrome.com/blog/webauthn-immediate-mediation-ot).
1314
* Fix: add `@login required` to passkey registration views. thanks to @rafaelurbeno for reporting the issue.
1415

1516
## 1.4.1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ You can watch demo presented by Google
4444

4545
`pip install django-passkeys`
4646

47-
Supports Django 2.0+, Python 3.7+
47+
Supports Django 2.2+, Python 3.7+
4848

4949
# Usage
5050
1. In your settings.py add the application to your installed apps

example/test_app/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
'passkeys',
4545
'rest_framework',
4646
'drf_spectacular',
47+
4748
'sslserver'
4849
]
4950

passkeys/api/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def reg_complete_service(user, state_token, credential, key_name, request):
5353
except IntegrityError:
5454
raise PasskeyVerificationError("This passkey is already registered")
5555
except Exception:
56-
logger.exception("Passkey registration verification failed")
56+
# logger.exception("Passkey registration verification failed")
5757
raise PasskeyVerificationError("Passkey verification failed, please try again")
5858

5959
return passkey

requirements_test.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
coverage
22
tox
3-
djangorestframework>=3.14
4-
drf-spectacular>=0.27
3+
djangorestframework
4+
drf-spectacular

setup.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,9 @@
3737
#"Development Status :: 4 - Beta",
3838
"Environment :: Web Environment",
3939
"Framework :: Django",
40-
"Framework :: Django :: 2.0",
41-
"Framework :: Django :: 2.1",
4240
"Framework :: Django :: 2.2",
43-
"Framework :: Django :: 3.0",
44-
"Framework :: Django :: 3.1",
4541
"Framework :: Django :: 3.2",
46-
"Framework :: Django :: 4.0",
47-
"Framework :: Django :: 4.1",
4842
"Framework :: Django :: 4.2",
49-
"Framework :: Django :: 5.0",
50-
"Framework :: Django :: 5.1",
5143
"Framework :: Django :: 5.2",
5244
"Framework :: Django :: 6.0",
5345
"Intended Audience :: Developers",

tox.ini

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[tox]
22
envlist=
33
#docs,
4-
py37-django{20,21,22,32}-fido11,
5-
py38-django{20,21,22,32,40,41,42}-fido11
6-
py39-django{22,32,40,41,42}-fido11,
7-
py310-django{22,32,42,50,51,52}-fido{11,20,21},
8-
py311-django{42,50,51,52,60}-fido{11,20,21},
9-
py312-django{41,42,50,51,52,60},fido{11,20,21},
10-
py313-django{50,51,52,60}-fido{11,20,21},
4+
py37-django{22,32}-fido11,
5+
py38-django{22,32,42}-fido11
6+
py39-django{22,32,42}-fido11,
7+
py310-django{22,32,42,52}-fido{11,20,21},
8+
py311-django{42,52,60}-fido{11,20,21},
9+
py312-django{42,52,60},fido{11,20,21},
10+
py313-django{52,60}-fido{11,20,21},
1111
py314-django{52,60}-fido{11,20,21},
1212

1313
[testenv]
@@ -17,14 +17,16 @@ deps =
1717
fido11: fido2>=1.1.0,<2.0
1818
fido20: fido2>=2.0.0,<2.1
1919
fido21: fido2>=2.1,<2.2
20-
django22: django>=2.2,<2.3
21-
django32: django>=3.2,<3.3
22-
django40: django>=4.0,<4.1
23-
django41: django>=4.1,<4.2
24-
django42: django>=4.2,<4.3
25-
django50: django>=5.0,<5.1
26-
django51: django>=5.1,<5.2
27-
django52: django>=5.2,<5.3
20+
; django20: django>=2.0,<2.1
21+
; django21: django>=2.1,<2.2
22+
django22: django>=2.2,<3.0
23+
django32: django>=3.2,<4.0
24+
; django40: django>=4.0,<4.1
25+
; django41: django>=4.1,<4.2
26+
django42: django>=4.2,<5.0
27+
; django50: django>=5.0,<5.1
28+
; django51: django>=5.1,<5.2
29+
django52: django>=5.2,<6.0
2830
django60: django>=6.0,<6.1
2931
ua-parser
3032
user-agents

0 commit comments

Comments
 (0)