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/saml/migrations/0001_initial.py

69 lines
2.2 KiB
Python
Raw Normal View History

# Generated by Django 3.0.6 on 2020-05-19 22:08
2019-11-07 16:02:56 +00:00
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
("passbook_crypto", "0001_initial"),
("passbook_core", "0001_initial"),
2019-11-07 16:02:56 +00:00
]
operations = [
migrations.CreateModel(
2019-12-31 11:51:16 +00:00
name="SAMLSource",
2019-11-07 16:02:56 +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",
),
),
(
"issuer",
models.TextField(
blank=True,
default=None,
help_text="Also known as Entity ID. Defaults the Metadata URL.",
verbose_name="Issuer",
),
),
("idp_url", models.URLField(verbose_name="IDP URL")),
(
"idp_logout_url",
models.URLField(
blank=True,
default=None,
null=True,
verbose_name="IDP Logout URL",
),
),
2019-12-31 11:51:16 +00:00
("auto_logout", models.BooleanField(default=False)),
(
"signing_kp",
models.ForeignKey(
default=None,
help_text="Certificate Key Pair of the IdP which Assertions are validated against.",
null=True,
on_delete=django.db.models.deletion.SET_NULL,
to="passbook_crypto.CertificateKeyPair",
),
),
2019-11-07 16:02:56 +00:00
],
options={
"verbose_name": "SAML Source",
"verbose_name_plural": "SAML Sources",
},
2019-12-31 11:51:16 +00:00
bases=("passbook_core.source",),
2019-11-07 16:02:56 +00:00
),
]