authentik.providers.saml.migrations.0023_samlprovider_encryption_algorithm
1# Generated by Django 5.2.17 on 2026-09-26 07:36 2 3from django.db import migrations, models 4 5 6class Migration(migrations.Migration): 7 8 dependencies = [ 9 ("authentik_providers_saml", "0022_remove_samlprovider_issuer_and_more"), 10 ] 11 12 operations = [ 13 # Existing providers keep AES128-CBC. 14 migrations.AddField( 15 model_name="samlprovider", 16 name="encryption_algorithm", 17 field=models.TextField( 18 choices=[ 19 ("http://www.w3.org/2001/04/xmlenc#aes128-cbc", "AES128-CBC"), 20 ("http://www.w3.org/2001/04/xmlenc#aes256-cbc", "AES256-CBC"), 21 ("http://www.w3.org/2009/xmlenc11#aes128-gcm", "AES128-GCM"), 22 ("http://www.w3.org/2009/xmlenc11#aes256-gcm", "AES256-GCM"), 23 ], 24 default="http://www.w3.org/2001/04/xmlenc#aes128-cbc", 25 help_text="Block cipher used to encrypt the assertion.", 26 ), 27 ), 28 # New providers default to AES256-GCM. 29 migrations.AlterField( 30 model_name="samlprovider", 31 name="encryption_algorithm", 32 field=models.TextField( 33 choices=[ 34 ("http://www.w3.org/2001/04/xmlenc#aes128-cbc", "AES128-CBC"), 35 ("http://www.w3.org/2001/04/xmlenc#aes256-cbc", "AES256-CBC"), 36 ("http://www.w3.org/2009/xmlenc11#aes128-gcm", "AES128-GCM"), 37 ("http://www.w3.org/2009/xmlenc11#aes256-gcm", "AES256-GCM"), 38 ], 39 default="http://www.w3.org/2009/xmlenc11#aes256-gcm", 40 help_text="Block cipher used to encrypt the assertion.", 41 ), 42 ), 43 ]
class
Migration(django.db.migrations.migration.Migration):
7class Migration(migrations.Migration): 8 9 dependencies = [ 10 ("authentik_providers_saml", "0022_remove_samlprovider_issuer_and_more"), 11 ] 12 13 operations = [ 14 # Existing providers keep AES128-CBC. 15 migrations.AddField( 16 model_name="samlprovider", 17 name="encryption_algorithm", 18 field=models.TextField( 19 choices=[ 20 ("http://www.w3.org/2001/04/xmlenc#aes128-cbc", "AES128-CBC"), 21 ("http://www.w3.org/2001/04/xmlenc#aes256-cbc", "AES256-CBC"), 22 ("http://www.w3.org/2009/xmlenc11#aes128-gcm", "AES128-GCM"), 23 ("http://www.w3.org/2009/xmlenc11#aes256-gcm", "AES256-GCM"), 24 ], 25 default="http://www.w3.org/2001/04/xmlenc#aes128-cbc", 26 help_text="Block cipher used to encrypt the assertion.", 27 ), 28 ), 29 # New providers default to AES256-GCM. 30 migrations.AlterField( 31 model_name="samlprovider", 32 name="encryption_algorithm", 33 field=models.TextField( 34 choices=[ 35 ("http://www.w3.org/2001/04/xmlenc#aes128-cbc", "AES128-CBC"), 36 ("http://www.w3.org/2001/04/xmlenc#aes256-cbc", "AES256-CBC"), 37 ("http://www.w3.org/2009/xmlenc11#aes128-gcm", "AES128-GCM"), 38 ("http://www.w3.org/2009/xmlenc11#aes256-gcm", "AES256-GCM"), 39 ], 40 default="http://www.w3.org/2009/xmlenc11#aes256-gcm", 41 help_text="Block cipher used to encrypt the assertion.", 42 ), 43 ), 44 ]
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.