authentik.providers.oauth2.migrations.0021_oauth2provider_encryption_key_and_more
1# Generated by Django 5.0.9 on 2024-10-16 14:53 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 ( 12 "authentik_providers_oauth2", 13 "0020_remove_accesstoken_authentik_p_token_4bc870_idx_and_more", 14 ), 15 ] 16 17 operations = [ 18 migrations.AddField( 19 model_name="oauth2provider", 20 name="encryption_key", 21 field=models.ForeignKey( 22 help_text="Key used to encrypt the tokens. When set, tokens will be encrypted and returned as JWEs.", 23 null=True, 24 on_delete=django.db.models.deletion.SET_NULL, 25 related_name="oauth2provider_encryption_key_set", 26 to="authentik_crypto.certificatekeypair", 27 verbose_name="Encryption Key", 28 ), 29 ), 30 migrations.AlterField( 31 model_name="oauth2provider", 32 name="signing_key", 33 field=models.ForeignKey( 34 help_text="Key used to sign the tokens.", 35 null=True, 36 on_delete=django.db.models.deletion.SET_NULL, 37 related_name="oauth2provider_signing_key_set", 38 to="authentik_crypto.certificatekeypair", 39 verbose_name="Signing Key", 40 ), 41 ), 42 ]
class
Migration(django.db.migrations.migration.Migration):
8class Migration(migrations.Migration): 9 10 dependencies = [ 11 ("authentik_crypto", "0004_alter_certificatekeypair_name"), 12 ( 13 "authentik_providers_oauth2", 14 "0020_remove_accesstoken_authentik_p_token_4bc870_idx_and_more", 15 ), 16 ] 17 18 operations = [ 19 migrations.AddField( 20 model_name="oauth2provider", 21 name="encryption_key", 22 field=models.ForeignKey( 23 help_text="Key used to encrypt the tokens. When set, tokens will be encrypted and returned as JWEs.", 24 null=True, 25 on_delete=django.db.models.deletion.SET_NULL, 26 related_name="oauth2provider_encryption_key_set", 27 to="authentik_crypto.certificatekeypair", 28 verbose_name="Encryption Key", 29 ), 30 ), 31 migrations.AlterField( 32 model_name="oauth2provider", 33 name="signing_key", 34 field=models.ForeignKey( 35 help_text="Key used to sign the tokens.", 36 null=True, 37 on_delete=django.db.models.deletion.SET_NULL, 38 related_name="oauth2provider_signing_key_set", 39 to="authentik_crypto.certificatekeypair", 40 verbose_name="Signing Key", 41 ), 42 ), 43 ]
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.