authentik.stages.identification.migrations.0017_identificationstage_webauthn_stage

 1# Generated by Django 5.2.8 on 2025-11-26 16:09
 2
 3import django.db.models.deletion
 4from django.db import migrations, models
 5
 6
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        (
11            "authentik_stages_authenticator_validate",
12            "0014_alter_authenticatorvalidatestage_device_classes",
13        ),
14        ("authentik_stages_identification", "0016_identificationstage_enable_remember_me"),
15    ]
16
17    operations = [
18        migrations.AddField(
19            model_name="identificationstage",
20            name="webauthn_stage",
21            field=models.ForeignKey(
22                default=None,
23                help_text="When set, and conditional WebAuthn is available, allow the user to use their passkey as a first factor.",
24                null=True,
25                on_delete=django.db.models.deletion.SET_NULL,
26                to="authentik_stages_authenticator_validate.authenticatorvalidatestage",
27            ),
28        ),
29    ]
class Migration(django.db.migrations.migration.Migration):
 8class Migration(migrations.Migration):
 9
10    dependencies = [
11        (
12            "authentik_stages_authenticator_validate",
13            "0014_alter_authenticatorvalidatestage_device_classes",
14        ),
15        ("authentik_stages_identification", "0016_identificationstage_enable_remember_me"),
16    ]
17
18    operations = [
19        migrations.AddField(
20            model_name="identificationstage",
21            name="webauthn_stage",
22            field=models.ForeignKey(
23                default=None,
24                help_text="When set, and conditional WebAuthn is available, allow the user to use their passkey as a first factor.",
25                null=True,
26                on_delete=django.db.models.deletion.SET_NULL,
27                to="authentik_stages_authenticator_validate.authenticatorvalidatestage",
28            ),
29        ),
30    ]

The base class for all migrations.

Migration files will import this from django.db.migrations.Migration and subclass it as a class called Migration. It will have one or more of the following attributes:

  • operations: A list of Operation instances, probably from django.db.migrations.operations
  • dependencies: A list of tuples of (app_path, migration_name)
  • run_before: A list of tuples of (app_path, migration_name)
  • replaces: A list of migration_names

Note that all migrations come out of migrations and into the Loader or Graph as instances, having been initialized with their app label and name.

dependencies = [('authentik_stages_authenticator_validate', '0014_alter_authenticatorvalidatestage_device_classes'), ('authentik_stages_identification', '0016_identificationstage_enable_remember_me')]
operations = [<AddField model_name='identificationstage', name='webauthn_stage', field=<django.db.models.fields.related.ForeignKey>>]