authentik.providers.saml.migrations.0016_samlprovider_encryption_kp_and_more
1# Generated by Django 5.0.8 on 2024-08-15 14:52 2 3import django.db.models.deletion 4from django.db import migrations, models 5 6 7class Migration(migrations.Migration): 8 9 dependencies = [ 10 ("authentik_crypto", "0004_alter_certificatekeypair_name"), 11 ("authentik_providers_saml", "0015_alter_samlpropertymapping_options"), 12 ] 13 14 operations = [ 15 migrations.AddField( 16 model_name="samlprovider", 17 name="encryption_kp", 18 field=models.ForeignKey( 19 blank=True, 20 default=None, 21 help_text="When selected, incoming assertions are encrypted by the IdP using the public key of the encryption keypair. The assertion is decrypted by the SP using the the private key.", 22 null=True, 23 on_delete=django.db.models.deletion.SET_NULL, 24 related_name="+", 25 to="authentik_crypto.certificatekeypair", 26 verbose_name="Encryption Keypair", 27 ), 28 ), 29 migrations.AddField( 30 model_name="samlprovider", 31 name="sign_assertion", 32 field=models.BooleanField(default=True), 33 ), 34 migrations.AddField( 35 model_name="samlprovider", 36 name="sign_response", 37 field=models.BooleanField(default=False), 38 ), 39 ]
class
Migration(django.db.migrations.migration.Migration):
8class Migration(migrations.Migration): 9 10 dependencies = [ 11 ("authentik_crypto", "0004_alter_certificatekeypair_name"), 12 ("authentik_providers_saml", "0015_alter_samlpropertymapping_options"), 13 ] 14 15 operations = [ 16 migrations.AddField( 17 model_name="samlprovider", 18 name="encryption_kp", 19 field=models.ForeignKey( 20 blank=True, 21 default=None, 22 help_text="When selected, incoming assertions are encrypted by the IdP using the public key of the encryption keypair. The assertion is decrypted by the SP using the the private key.", 23 null=True, 24 on_delete=django.db.models.deletion.SET_NULL, 25 related_name="+", 26 to="authentik_crypto.certificatekeypair", 27 verbose_name="Encryption Keypair", 28 ), 29 ), 30 migrations.AddField( 31 model_name="samlprovider", 32 name="sign_assertion", 33 field=models.BooleanField(default=True), 34 ), 35 migrations.AddField( 36 model_name="samlprovider", 37 name="sign_response", 38 field=models.BooleanField(default=False), 39 ), 40 ]
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_crypto', '0004_alter_certificatekeypair_name'), ('authentik_providers_saml', '0015_alter_samlpropertymapping_options')]
operations =
[<AddField model_name='samlprovider', name='encryption_kp', field=<django.db.models.fields.related.ForeignKey>>, <AddField model_name='samlprovider', name='sign_assertion', field=<django.db.models.fields.BooleanField>>, <AddField model_name='samlprovider', name='sign_response', field=<django.db.models.fields.BooleanField>>]