2020-05-20 07:17:06 +00:00
|
|
|
# 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 = [
|
2020-05-20 07:17:06 +00:00
|
|
|
("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",
|
|
|
|
),
|
|
|
|
),
|
2020-05-20 07:17:06 +00:00
|
|
|
(
|
|
|
|
"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)),
|
2020-05-20 07:17:06 +00:00
|
|
|
(
|
|
|
|
"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
|
|
|
],
|
2020-05-20 07:17:06 +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
|
|
|
),
|
|
|
|
]
|