From 4b2437a6f140b8ab4c446654e632c073a786651c Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 14 Dec 2021 10:51:34 +0100 Subject: [PATCH] stages/authenticator_webauthn: use correct choices Signed-off-by: Jens Langhammer --- authentik/stages/authenticator_webauthn/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/authentik/stages/authenticator_webauthn/models.py b/authentik/stages/authenticator_webauthn/models.py index c0439501c..cfcba9906 100644 --- a/authentik/stages/authenticator_webauthn/models.py +++ b/authentik/stages/authenticator_webauthn/models.py @@ -9,7 +9,7 @@ from django.views import View from django_otp.models import Device from rest_framework.serializers import BaseSerializer from webauthn.helpers.base64url_to_bytes import base64url_to_bytes -from webauthn.helpers.structs import PublicKeyCredentialDescriptor, UserVerificationRequirement +from webauthn.helpers.structs import PublicKeyCredentialDescriptor from authentik.core.types import UserSettingSerializer from authentik.flows.models import ConfigurableStage, Stage @@ -26,9 +26,9 @@ class UserVerification(models.TextChoices): https://www.w3.org/TR/webauthn-2/#enumdef-userverificationrequirement """ - REQUIRED = UserVerificationRequirement.REQUIRED - PREFERRED = UserVerificationRequirement.PREFERRED - DISCOURAGED = UserVerificationRequirement.DISCOURAGED + REQUIRED = "required" + PREFERRED = "preferred" + DISCOURAGED = "discouraged" class AuthenticateWebAuthnStage(ConfigurableStage, Stage):