Compare commits
22 Commits
CVE-2022-4
...
v2.5b2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dfb60ac685 | ||
|
|
12b4ef5c8e | ||
|
|
84b9d297d2 | ||
|
|
1ebc5bfd2b | ||
|
|
d8b10bcdc1 | ||
|
|
7b2c5727e4 | ||
|
|
7eecd759f7 | ||
|
|
7a9195a73e | ||
|
|
2278722914 | ||
|
|
8ed847922e | ||
|
|
32fdbf1bc0 | ||
|
|
7595b8d0c5 | ||
|
|
b763c22297 | ||
|
|
e4aaee6e1a | ||
|
|
566b05f1e6 | ||
|
|
4a2839a4fb | ||
|
|
f655851f65 | ||
|
|
8bea746d83 | ||
|
|
f6d25d7a79 | ||
|
|
1f4be15fc5 | ||
|
|
6ea99ff931 | ||
|
|
660d5ca8f8 |
@@ -5,7 +5,6 @@
|
|||||||
Note: It seems Firefox doesn't support WebAuthn on iOS
|
Note: It seems Firefox doesn't support WebAuthn on iOS
|
||||||
* Fixed: Support for bootstrap5
|
* Fixed: Support for bootstrap5
|
||||||
Thanks to @ezrajrice
|
Thanks to @ezrajrice
|
||||||
* Upgraded to fido2==1.0.0
|
|
||||||
|
|
||||||
## 2.4.0
|
## 2.4.0
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ Depends on
|
|||||||
* ua-parser
|
* ua-parser
|
||||||
* user-agents
|
* user-agents
|
||||||
* python-jose
|
* python-jose
|
||||||
* fido2==1.0.0
|
* fido2==0.9.0
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
1. using pip
|
1. using pip
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ from .views import login, reset_cookie
|
|||||||
import datetime
|
import datetime
|
||||||
from .Common import get_redirect_url
|
from .Common import get_redirect_url
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
from django.http import JsonResponse
|
|
||||||
|
|
||||||
def recheck(request):
|
def recheck(request):
|
||||||
"""Starts FIDO2 recheck"""
|
"""Starts FIDO2 recheck"""
|
||||||
@@ -49,15 +49,13 @@ def begin_registeration(request):
|
|||||||
def complete_reg(request):
|
def complete_reg(request):
|
||||||
"""Completes the registeration, called by API"""
|
"""Completes the registeration, called by API"""
|
||||||
try:
|
try:
|
||||||
if not "fido_state" in request.session:
|
|
||||||
return JsonResponse({'status': 'ERR', "message": "FIDO Status can't be found, please try again"})
|
|
||||||
data = cbor.decode(request.body)
|
data = cbor.decode(request.body)
|
||||||
|
|
||||||
client_data = CollectedClientData(data['clientDataJSON'])
|
client_data = CollectedClientData(data['clientDataJSON'])
|
||||||
att_obj = AttestationObject((data['attestationObject']))
|
att_obj = AttestationObject((data['attestationObject']))
|
||||||
server = getServer()
|
server = getServer()
|
||||||
auth_data = server.register_complete(
|
auth_data = server.register_complete(
|
||||||
request.session.pop('fido_state'),
|
request.session['fido_state'],
|
||||||
client_data,
|
client_data,
|
||||||
att_obj
|
att_obj
|
||||||
)
|
)
|
||||||
@@ -77,7 +75,7 @@ def complete_reg(request):
|
|||||||
client.captureException()
|
client.captureException()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
return JsonResponse({'status': 'ERR', "message": "Error on server, please try again later"})
|
return HttpResponse(simplejson.dumps({'status': 'ERR', "message": "Error on server, please try again later"}))
|
||||||
|
|
||||||
|
|
||||||
def start(request):
|
def start(request):
|
||||||
|
|||||||
4
setup.py
4
setup.py
@@ -4,7 +4,7 @@ from setuptools import find_packages, setup
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='django-mfa2',
|
name='django-mfa2',
|
||||||
version='2.5.0',
|
version='2.5.0b2',
|
||||||
description='Allows user to add 2FA to their accounts',
|
description='Allows user to add 2FA to their accounts',
|
||||||
long_description=open("README.md").read(),
|
long_description=open("README.md").read(),
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
@@ -31,7 +31,7 @@ setup(
|
|||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
zip_safe=False, # because we're including static files
|
zip_safe=False, # because we're including static files
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Development Status :: 5 - Production/Stable",
|
"Development Status :: 4 - Beta",
|
||||||
"Environment :: Web Environment",
|
"Environment :: Web Environment",
|
||||||
"Framework :: Django",
|
"Framework :: Django",
|
||||||
"Framework :: Django :: 2.0",
|
"Framework :: Django :: 2.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user