authentik.providers.oauth2.migrations.0009_oauth2provider_verification_keys_and_more
1# Generated by Django 4.0.3 on 2022-03-29 19:37 2 3import django.db.models.deletion 4from django.db import migrations, models 5 6 7class Migration(migrations.Migration): 8 dependencies = [ 9 ("authentik_crypto", "0003_certificatekeypair_managed"), 10 ("authentik_providers_oauth2", "0008_rename_rsa_key_oauth2provider_signing_key_and_more"), 11 ] 12 13 operations = [ 14 migrations.AddField( 15 model_name="oauth2provider", 16 name="verification_keys", 17 field=models.ManyToManyField( 18 help_text=( 19 "JWTs created with the configured certificates can authenticate with this" 20 " provider." 21 ), 22 related_name="+", 23 to="authentik_crypto.certificatekeypair", 24 verbose_name="Allowed certificates for JWT-based client_credentials", 25 ), 26 ), 27 migrations.AlterField( 28 model_name="oauth2provider", 29 name="signing_key", 30 field=models.ForeignKey( 31 help_text=( 32 "Key used to sign the tokens. Only required when JWT Algorithm is set to RS256." 33 ), 34 null=True, 35 on_delete=django.db.models.deletion.SET_NULL, 36 to="authentik_crypto.certificatekeypair", 37 verbose_name="Signing Key", 38 ), 39 ), 40 ]
class
Migration(django.db.migrations.migration.Migration):
8class Migration(migrations.Migration): 9 dependencies = [ 10 ("authentik_crypto", "0003_certificatekeypair_managed"), 11 ("authentik_providers_oauth2", "0008_rename_rsa_key_oauth2provider_signing_key_and_more"), 12 ] 13 14 operations = [ 15 migrations.AddField( 16 model_name="oauth2provider", 17 name="verification_keys", 18 field=models.ManyToManyField( 19 help_text=( 20 "JWTs created with the configured certificates can authenticate with this" 21 " provider." 22 ), 23 related_name="+", 24 to="authentik_crypto.certificatekeypair", 25 verbose_name="Allowed certificates for JWT-based client_credentials", 26 ), 27 ), 28 migrations.AlterField( 29 model_name="oauth2provider", 30 name="signing_key", 31 field=models.ForeignKey( 32 help_text=( 33 "Key used to sign the tokens. Only required when JWT Algorithm is set to RS256." 34 ), 35 null=True, 36 on_delete=django.db.models.deletion.SET_NULL, 37 to="authentik_crypto.certificatekeypair", 38 verbose_name="Signing Key", 39 ), 40 ), 41 ]
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.