Browse Source

Fix capitalization, Webauthn -> WebAuthn

pull/456/head
Pēteris Caune 4 years ago
parent
commit
8dbf9e02af
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
5 changed files with 7 additions and 7 deletions
  1. +1
    -1
      CHANGELOG.md
  2. +1
    -1
      hc/accounts/forms.py
  3. +1
    -1
      hc/accounts/tests/test_login_webauthn.py
  4. +3
    -3
      hc/accounts/views.py
  5. +1
    -1
      hc/settings.py

+ 1
- 1
CHANGELOG.md View File

@ -14,7 +14,7 @@ All notable changes to this project will be documented in this file.
- Change the "Test Integration" behavior for webhooks: don't retry failed requests - Change the "Test Integration" behavior for webhooks: don't retry failed requests
- Add retries to the the email sending logic - Add retries to the the email sending logic
- Require confirmation codes (sent to email) before sensitive actions - Require confirmation codes (sent to email) before sensitive actions
- Implement Webauthn two-factor authentication
- Implement WebAuthn two-factor authentication
## v1.17.0 - 2020-10-14 ## v1.17.0 - 2020-10-14


+ 1
- 1
hc/accounts/forms.py View File

@ -135,7 +135,7 @@ class AddCredentialForm(forms.Form):
attestation_object = Base64Field() attestation_object = Base64Field()
class WebauthnForm(forms.Form):
class WebAuthnForm(forms.Form):
credential_id = Base64Field() credential_id = Base64Field()
client_data_json = Base64Field() client_data_json = Base64Field()
authenticator_data = Base64Field() authenticator_data = Base64Field()


+ 1
- 1
hc/accounts/tests/test_login_webauthn.py View File

@ -5,7 +5,7 @@ from hc.test import BaseTestCase
@override_settings(RP_ID="testserver") @override_settings(RP_ID="testserver")
class LoginWebauthnTestCase(BaseTestCase):
class LoginWebAuthnTestCase(BaseTestCase):
def setUp(self): def setUp(self):
super().setUp() super().setUp()


+ 3
- 3
hc/accounts/views.py View File

@ -575,7 +575,7 @@ def remove_project(request, code):
def _get_credential_data(request, form): def _get_credential_data(request, form):
""" Complete Webauthn registration, return binary credential data.
""" Complete WebAuthn registration, return binary credential data.
This function is an interface to the fido2 library. It is separated This function is an interface to the fido2 library. It is separated
out so that we don't need to mock ClientData, AttestationObject, out so that we don't need to mock ClientData, AttestationObject,
@ -652,7 +652,7 @@ def remove_credential(request, code):
def _check_credential(request, form, credentials): def _check_credential(request, form, credentials):
""" Complete Webauthn authentication, return True on success.
""" Complete WebAuthn authentication, return True on success.
This function is an interface to the fido2 library. It is separated This function is an interface to the fido2 library. It is separated
out so that we don't need to mock ClientData, AuthenticatorData, out so that we don't need to mock ClientData, AuthenticatorData,
@ -684,7 +684,7 @@ def login_webauthn(request):
credentials = [c.unpack() for c in user.credentials.all()] credentials = [c.unpack() for c in user.credentials.all()]
if request.method == "POST": if request.method == "POST":
form = forms.WebauthnForm(request.POST)
form = forms.WebAuthnForm(request.POST)
if not form.is_valid(): if not form.is_valid():
return HttpResponseBadRequest() return HttpResponseBadRequest()


+ 1
- 1
hc/settings.py View File

@ -164,7 +164,7 @@ STATICFILES_FINDERS = (
COMPRESS_OFFLINE = True COMPRESS_OFFLINE = True
COMPRESS_CSS_HASHING_METHOD = "content" COMPRESS_CSS_HASHING_METHOD = "content"
# Webauthn
# WebAuthn
RP_ID = os.getenv("RP_ID") RP_ID = os.getenv("RP_ID")
# Discord integration # Discord integration


Loading…
Cancel
Save