authentik.providers.oauth2.migrations.0003_auto_20200916_2129

 1# Generated by Django 3.1.1 on 2020-09-16 21:29
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7    dependencies = [
 8        ("authentik_providers_oauth2", "0002_oauth2provider_sub_mode"),
 9    ]
10
11    operations = [
12        migrations.AlterField(
13            model_name="oauth2provider",
14            name="client_type",
15            field=models.CharField(
16                choices=[("confidential", "Confidential"), ("public", "Public")],
17                default="confidential",
18                help_text=(
19                    "Confidential clients are capable of maintaining the confidentiality\n    of"
20                    " their credentials. Public clients are incapable."
21                ),
22                max_length=30,
23                verbose_name="Client Type",
24            ),
25        ),
26        migrations.AlterField(
27            model_name="oauth2provider",
28            name="response_type",
29            field=models.TextField(
30                choices=[
31                    ("code", "code (Authorization Code Flow)"),
32                    ("id_token", "id_token (Implicit Flow)"),
33                    ("id_token token", "id_token token (Implicit Flow)"),
34                    ("code token", "code token (Hybrid Flow)"),
35                    ("code id_token", "code id_token (Hybrid Flow)"),
36                    ("code id_token token", "code id_token token (Hybrid Flow)"),
37                ],
38                default="code",
39                help_text="Response Type required by the client.",
40            ),
41        ),
42    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8    dependencies = [
 9        ("authentik_providers_oauth2", "0002_oauth2provider_sub_mode"),
10    ]
11
12    operations = [
13        migrations.AlterField(
14            model_name="oauth2provider",
15            name="client_type",
16            field=models.CharField(
17                choices=[("confidential", "Confidential"), ("public", "Public")],
18                default="confidential",
19                help_text=(
20                    "Confidential clients are capable of maintaining the confidentiality\n    of"
21                    " their credentials. Public clients are incapable."
22                ),
23                max_length=30,
24                verbose_name="Client Type",
25            ),
26        ),
27        migrations.AlterField(
28            model_name="oauth2provider",
29            name="response_type",
30            field=models.TextField(
31                choices=[
32                    ("code", "code (Authorization Code Flow)"),
33                    ("id_token", "id_token (Implicit Flow)"),
34                    ("id_token token", "id_token token (Implicit Flow)"),
35                    ("code token", "code token (Hybrid Flow)"),
36                    ("code id_token", "code id_token (Hybrid Flow)"),
37                    ("code id_token token", "code id_token token (Hybrid Flow)"),
38                ],
39                default="code",
40                help_text="Response Type required by the client.",
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.

dependencies = [('authentik_providers_oauth2', '0002_oauth2provider_sub_mode')]
operations = [<AlterField model_name='oauth2provider', name='client_type', field=<django.db.models.fields.CharField>>, <AlterField model_name='oauth2provider', name='response_type', field=<django.db.models.fields.TextField>>]