forked from GithubBackups/healthchecks
Fix capitalization, Webauthn -> WebAuthn
This commit is contained in:
parent
7124383a53
commit
8dbf9e02af
@ -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
|
||||
- Add retries to the the email sending logic
|
||||
- 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
|
||||
|
||||
|
@ -135,7 +135,7 @@ class AddCredentialForm(forms.Form):
|
||||
attestation_object = Base64Field()
|
||||
|
||||
|
||||
class WebauthnForm(forms.Form):
|
||||
class WebAuthnForm(forms.Form):
|
||||
credential_id = Base64Field()
|
||||
client_data_json = Base64Field()
|
||||
authenticator_data = Base64Field()
|
||||
|
@ -5,7 +5,7 @@ from hc.test import BaseTestCase
|
||||
|
||||
|
||||
@override_settings(RP_ID="testserver")
|
||||
class LoginWebauthnTestCase(BaseTestCase):
|
||||
class LoginWebAuthnTestCase(BaseTestCase):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
|
||||
|
@ -575,7 +575,7 @@ def remove_project(request, code):
|
||||
|
||||
|
||||
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
|
||||
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):
|
||||
""" 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
|
||||
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()]
|
||||
|
||||
if request.method == "POST":
|
||||
form = forms.WebauthnForm(request.POST)
|
||||
form = forms.WebAuthnForm(request.POST)
|
||||
if not form.is_valid():
|
||||
return HttpResponseBadRequest()
|
||||
|
||||
|
@ -164,7 +164,7 @@ STATICFILES_FINDERS = (
|
||||
COMPRESS_OFFLINE = True
|
||||
COMPRESS_CSS_HASHING_METHOD = "content"
|
||||
|
||||
# Webauthn
|
||||
# WebAuthn
|
||||
RP_ID = os.getenv("RP_ID")
|
||||
|
||||
# Discord integration
|
||||
|
Loading…
x
Reference in New Issue
Block a user