diff --git a/authentik/stages/authenticator_webauthn/migrations/0008_alter_webauthndevice_credential_id.py b/authentik/stages/authenticator_webauthn/migrations/0008_alter_webauthndevice_credential_id.py new file mode 100644 index 000000000..c8f6c4e62 --- /dev/null +++ b/authentik/stages/authenticator_webauthn/migrations/0008_alter_webauthndevice_credential_id.py @@ -0,0 +1,20 @@ +# Generated by Django 4.1.7 on 2023-03-13 19:49 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ( + "authentik_stages_authenticator_webauthn", + "0007_rename_last_used_on_webauthndevice_last_t", + ), + ] + + operations = [ + migrations.AlterField( + model_name="webauthndevice", + name="credential_id", + field=models.TextField(unique=True), + ), + ] diff --git a/authentik/stages/authenticator_webauthn/models.py b/authentik/stages/authenticator_webauthn/models.py index 3b495e6f7..f94ad8bd2 100644 --- a/authentik/stages/authenticator_webauthn/models.py +++ b/authentik/stages/authenticator_webauthn/models.py @@ -119,7 +119,7 @@ class WebAuthnDevice(SerializerModel, Device): user = models.ForeignKey(get_user_model(), on_delete=models.CASCADE) name = models.TextField(max_length=200) - credential_id = models.CharField(max_length=300, unique=True) + credential_id = models.TextField(unique=True) public_key = models.TextField() sign_count = models.IntegerField(default=0) rp_id = models.CharField(max_length=253)