authentik.providers.saml.migrations.0017_samlprovider_authn_context_class_ref_mapping
1# Generated by Django 5.0.13 on 2025-03-18 17:41 2 3import django.db.models.deletion 4from django.db import migrations, models 5 6 7class Migration(migrations.Migration): 8 9 dependencies = [ 10 ("authentik_providers_saml", "0016_samlprovider_encryption_kp_and_more"), 11 ] 12 13 operations = [ 14 migrations.AddField( 15 model_name="samlprovider", 16 name="authn_context_class_ref_mapping", 17 field=models.ForeignKey( 18 blank=True, 19 default=None, 20 help_text="Configure how the AuthnContextClassRef value will be created. When left empty, the AuthnContextClassRef will be set based on which authentication methods the user used to authenticate.", 21 null=True, 22 on_delete=django.db.models.deletion.SET_DEFAULT, 23 related_name="+", 24 to="authentik_providers_saml.samlpropertymapping", 25 verbose_name="AuthnContextClassRef Property Mapping", 26 ), 27 ), 28 ]
class
Migration(django.db.migrations.migration.Migration):
8class Migration(migrations.Migration): 9 10 dependencies = [ 11 ("authentik_providers_saml", "0016_samlprovider_encryption_kp_and_more"), 12 ] 13 14 operations = [ 15 migrations.AddField( 16 model_name="samlprovider", 17 name="authn_context_class_ref_mapping", 18 field=models.ForeignKey( 19 blank=True, 20 default=None, 21 help_text="Configure how the AuthnContextClassRef value will be created. When left empty, the AuthnContextClassRef will be set based on which authentication methods the user used to authenticate.", 22 null=True, 23 on_delete=django.db.models.deletion.SET_DEFAULT, 24 related_name="+", 25 to="authentik_providers_saml.samlpropertymapping", 26 verbose_name="AuthnContextClassRef Property Mapping", 27 ), 28 ), 29 ]
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.