authentik.sources.oauth.migrations.0010_oauthsource_authorization_code_auth_method
1# Generated by Django 5.0.14 on 2025-04-11 18:09 2 3from django.db import migrations, models 4 5 6class Migration(migrations.Migration): 7 8 dependencies = [ 9 ("authentik_sources_oauth", "0009_migrate_useroauthsourceconnection_identifier"), 10 ] 11 12 operations = [ 13 migrations.AddField( 14 model_name="oauthsource", 15 name="authorization_code_auth_method", 16 field=models.TextField( 17 choices=[ 18 ("basic_auth", "HTTP Basic Authentication"), 19 ("post_body", "Include the client ID and secret as request parameters"), 20 ], 21 default="basic_auth", 22 help_text="How to perform authentication during an authorization_code token request flow", 23 ), 24 ), 25 ]
class
Migration(django.db.migrations.migration.Migration):
7class Migration(migrations.Migration): 8 9 dependencies = [ 10 ("authentik_sources_oauth", "0009_migrate_useroauthsourceconnection_identifier"), 11 ] 12 13 operations = [ 14 migrations.AddField( 15 model_name="oauthsource", 16 name="authorization_code_auth_method", 17 field=models.TextField( 18 choices=[ 19 ("basic_auth", "HTTP Basic Authentication"), 20 ("post_body", "Include the client ID and secret as request parameters"), 21 ], 22 default="basic_auth", 23 help_text="How to perform authentication during an authorization_code token request flow", 24 ), 25 ), 26 ]
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.