This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/passbook/sources/oauth/migrations/0001_initial.py

82 lines
2.8 KiB
Python
Raw Normal View History

# Generated by Django 3.0.6 on 2020-05-19 22:08
2018-11-11 12:41:48 +00:00
2018-11-16 10:41:14 +00:00
import django.db.models.deletion
from django.db import migrations, models
2018-11-11 12:41:48 +00:00
class Migration(migrations.Migration):
initial = True
dependencies = [
2019-12-31 11:51:16 +00:00
("passbook_core", "0001_initial"),
2018-11-11 12:41:48 +00:00
]
operations = [
migrations.CreateModel(
2019-12-31 11:51:16 +00:00
name="OAuthSource",
2018-11-11 12:41:48 +00:00
fields=[
2019-12-31 11:51:16 +00:00
(
"source_ptr",
models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
serialize=False,
to="passbook_core.Source",
),
),
("provider_type", models.CharField(max_length=255)),
(
"request_token_url",
models.CharField(
blank=True, max_length=255, verbose_name="Request Token URL"
),
),
(
"authorization_url",
models.CharField(max_length=255, verbose_name="Authorization URL"),
),
(
"access_token_url",
models.CharField(max_length=255, verbose_name="Access Token URL"),
),
(
"profile_url",
models.CharField(max_length=255, verbose_name="Profile URL"),
),
2019-12-31 11:51:16 +00:00
("consumer_key", models.TextField()),
("consumer_secret", models.TextField()),
2018-11-11 12:41:48 +00:00
],
options={
2019-12-31 11:51:16 +00:00
"verbose_name": "Generic OAuth Source",
"verbose_name_plural": "Generic OAuth Sources",
2018-11-11 12:41:48 +00:00
},
2019-12-31 11:51:16 +00:00
bases=("passbook_core.source",),
2018-11-11 12:41:48 +00:00
),
migrations.CreateModel(
2019-12-31 11:51:16 +00:00
name="UserOAuthSourceConnection",
2018-11-11 12:41:48 +00:00
fields=[
2019-12-31 11:51:16 +00:00
(
"usersourceconnection_ptr",
models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
serialize=False,
to="passbook_core.UserSourceConnection",
),
),
("identifier", models.CharField(max_length=255)),
("access_token", models.TextField(blank=True, default=None, null=True)),
2018-11-11 12:41:48 +00:00
],
options={
2019-12-31 11:51:16 +00:00
"verbose_name": "User OAuth Source Connection",
"verbose_name_plural": "User OAuth Source Connections",
2018-11-11 12:41:48 +00:00
},
2019-12-31 11:51:16 +00:00
bases=("passbook_core.usersourceconnection",),
2018-11-11 12:41:48 +00:00
),
]