diff --git a/CHANGELOG.md b/CHANGELOG.md index a539a6e..730f324 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,11 @@ # Change Log +## 2.4.0 + + * Fixed: issue in the 'Authorize' button don't show on Safari Mobile. + * Upgrade to FIDO2 0.9.2, to fix issue with Windows 11. + * Fixed: Minor Typos. + + ## 2.3.0 * Fixed: A missing import Thanks @AndreasDickow * Fixed: `MFA.html` now call `{{block.super}}` for head and content blocks, thanks @mnelson4 diff --git a/example/example/settings.py b/example/example/settings.py index 37735a2..cc9633c 100644 --- a/example/example/settings.py +++ b/example/example/settings.py @@ -25,7 +25,7 @@ # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ['*'] # Application definition @@ -146,5 +146,5 @@ TOKEN_ISSUER_NAME="PROJECT_NAME" #TOTP Issuer name U2F_APPID="https://localhost" #URL For U2F -FIDO_SERVER_ID=u"localhost" # Server rp id for FIDO2, it the full domain of your project -FIDO_SERVER_NAME=u"PROJECT_NAME" +FIDO_SERVER_ID=u"local.mkalioby.com" # Server rp id for FIDO2, it the full domain of your project +FIDO_SERVER_NAME=u"TestApp" diff --git a/mfa/templates/FIDO2/Add.html b/mfa/templates/FIDO2/Add.html index 74381cf..5340c45 100644 --- a/mfa/templates/FIDO2/Add.html +++ b/mfa/templates/FIDO2/Add.html @@ -34,16 +34,16 @@ if (res["status"] =='OK') $("#res").html("
Registered Successfully, {{reg_success_msg}}
") else - $("#res").html("
Registeration Failed as " + res["message"] + ", try again or Go to Security Home
") + $("#res").html("
Registration Failed as " + res["message"] + ", try again or Go to Security Home
") }, function(reason) { - $("#res").html("
Registeration Failed as " +reason +", try again or Go to Security Home
") + $("#res").html("
Registration Failed as " +reason +", try again or Go to Security Home
") }) } $(document).ready(function (){ ua=new UAParser().getResult() - if (ua.browser.name == "Safari") + if (ua.browser.name == "Safari" || ua.browser.name == "Mobile Safari" ) { $("#res").html("") } diff --git a/mfa/templates/FIDO2/recheck.html b/mfa/templates/FIDO2/recheck.html index 3dc0609..e5d8e79 100644 --- a/mfa/templates/FIDO2/recheck.html +++ b/mfa/templates/FIDO2/recheck.html @@ -105,7 +105,7 @@ $("#main_paragraph").html("FIDO2 must work under secure context") } else { ua=new UAParser().getResult() - if (ua.browser.name == "Safari") + if (ua.browser.name == "Safari" || ua.browser.name == "Mobile Safari" ) $("#res").html("") else authen() diff --git a/setup.py b/setup.py index be2d94f..ac13127 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name='django-mfa2', - version='2.3.0', + version='2.4.0', description='Allows user to add 2FA to their accounts', long_description=open("README.md").read(), long_description_content_type="text/markdown", @@ -24,7 +24,7 @@ 'ua-parser', 'user-agents', 'python-jose', - 'fido2 == 0.9.1', + 'fido2 == 0.9.2', 'jsonLookup' ], python_requires=">=3.5",