authentik.providers.saml.migrations.0014_alter_samlprovider_digest_algorithm_and_more
1# Generated by Django 5.0.4 on 2024-05-01 15:32 2 3from django.db import migrations, models 4 5 6class Migration(migrations.Migration): 7 8 dependencies = [ 9 ("authentik_providers_saml", "0013_samlprovider_default_relay_state"), 10 ] 11 12 operations = [ 13 migrations.AlterField( 14 model_name="samlprovider", 15 name="digest_algorithm", 16 field=models.TextField( 17 choices=[ 18 ("http://www.w3.org/2000/09/xmldsig#sha1", "SHA1"), 19 ("http://www.w3.org/2001/04/xmlenc#sha256", "SHA256"), 20 ("http://www.w3.org/2001/04/xmldsig-more#sha384", "SHA384"), 21 ("http://www.w3.org/2001/04/xmlenc#sha512", "SHA512"), 22 ], 23 default="http://www.w3.org/2001/04/xmlenc#sha256", 24 ), 25 ), 26 migrations.AlterField( 27 model_name="samlprovider", 28 name="signature_algorithm", 29 field=models.TextField( 30 choices=[ 31 ("http://www.w3.org/2000/09/xmldsig#rsa-sha1", "RSA-SHA1"), 32 ("http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", "RSA-SHA256"), 33 ("http://www.w3.org/2001/04/xmldsig-more#rsa-sha384", "RSA-SHA384"), 34 ("http://www.w3.org/2001/04/xmldsig-more#rsa-sha512", "RSA-SHA512"), 35 ("http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1", "ECDSA-SHA1"), 36 ("http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256", "ECDSA-SHA256"), 37 ("http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384", "ECDSA-SHA384"), 38 ("http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512", "ECDSA-SHA512"), 39 ("http://www.w3.org/2000/09/xmldsig#dsa-sha1", "DSA-SHA1"), 40 ], 41 default="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", 42 ), 43 ), 44 ]
class
Migration(django.db.migrations.migration.Migration):
7class Migration(migrations.Migration): 8 9 dependencies = [ 10 ("authentik_providers_saml", "0013_samlprovider_default_relay_state"), 11 ] 12 13 operations = [ 14 migrations.AlterField( 15 model_name="samlprovider", 16 name="digest_algorithm", 17 field=models.TextField( 18 choices=[ 19 ("http://www.w3.org/2000/09/xmldsig#sha1", "SHA1"), 20 ("http://www.w3.org/2001/04/xmlenc#sha256", "SHA256"), 21 ("http://www.w3.org/2001/04/xmldsig-more#sha384", "SHA384"), 22 ("http://www.w3.org/2001/04/xmlenc#sha512", "SHA512"), 23 ], 24 default="http://www.w3.org/2001/04/xmlenc#sha256", 25 ), 26 ), 27 migrations.AlterField( 28 model_name="samlprovider", 29 name="signature_algorithm", 30 field=models.TextField( 31 choices=[ 32 ("http://www.w3.org/2000/09/xmldsig#rsa-sha1", "RSA-SHA1"), 33 ("http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", "RSA-SHA256"), 34 ("http://www.w3.org/2001/04/xmldsig-more#rsa-sha384", "RSA-SHA384"), 35 ("http://www.w3.org/2001/04/xmldsig-more#rsa-sha512", "RSA-SHA512"), 36 ("http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1", "ECDSA-SHA1"), 37 ("http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256", "ECDSA-SHA256"), 38 ("http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384", "ECDSA-SHA384"), 39 ("http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512", "ECDSA-SHA512"), 40 ("http://www.w3.org/2000/09/xmldsig#dsa-sha1", "DSA-SHA1"), 41 ], 42 default="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", 43 ), 44 ), 45 ]
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.