2019-10-07 14:33:48 +00:00
|
|
|
# Generated by Django 2.2.6 on 2019-10-07 14:07
|
2018-11-16 10:41:14 +00:00
|
|
|
|
2019-10-07 14:33:48 +00:00
|
|
|
import django.contrib.postgres.fields
|
2018-11-16 10:41:14 +00:00
|
|
|
import django.db.models.deletion
|
2018-11-16 12:08:37 +00:00
|
|
|
from django.db import migrations, models
|
2018-11-16 10:41:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [
|
2019-12-31 11:51:16 +00:00
|
|
|
("passbook_core", "0001_initial"),
|
2018-11-16 10:41:14 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
2019-10-07 14:33:48 +00:00
|
|
|
migrations.CreateModel(
|
2019-12-31 11:51:16 +00:00
|
|
|
name="SAMLPropertyMapping",
|
2019-10-07 14:33:48 +00:00
|
|
|
fields=[
|
2019-12-31 11:51:16 +00:00
|
|
|
(
|
|
|
|
"propertymapping_ptr",
|
|
|
|
models.OneToOneField(
|
|
|
|
auto_created=True,
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
parent_link=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
to="passbook_core.PropertyMapping",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("saml_name", models.TextField()),
|
|
|
|
(
|
|
|
|
"friendly_name",
|
|
|
|
models.TextField(blank=True, default=None, null=True),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"values",
|
|
|
|
django.contrib.postgres.fields.ArrayField(
|
|
|
|
base_field=models.TextField(), size=None
|
|
|
|
),
|
|
|
|
),
|
2019-10-07 14:33:48 +00:00
|
|
|
],
|
|
|
|
options={
|
2019-12-31 11:51:16 +00:00
|
|
|
"verbose_name": "SAML Property Mapping",
|
|
|
|
"verbose_name_plural": "SAML Property Mappings",
|
2019-10-07 14:33:48 +00:00
|
|
|
},
|
2019-12-31 11:51:16 +00:00
|
|
|
bases=("passbook_core.propertymapping",),
|
2019-10-07 14:33:48 +00:00
|
|
|
),
|
2018-11-16 10:41:14 +00:00
|
|
|
migrations.CreateModel(
|
2019-12-31 11:51:16 +00:00
|
|
|
name="SAMLProvider",
|
2018-11-16 10:41:14 +00:00
|
|
|
fields=[
|
2019-12-31 11:51:16 +00:00
|
|
|
(
|
|
|
|
"provider_ptr",
|
|
|
|
models.OneToOneField(
|
|
|
|
auto_created=True,
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
parent_link=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
to="passbook_core.Provider",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("name", models.TextField()),
|
|
|
|
("acs_url", models.URLField()),
|
|
|
|
("audience", models.TextField(default="")),
|
|
|
|
("processor_path", models.CharField(max_length=255)),
|
|
|
|
("issuer", models.TextField()),
|
|
|
|
("assertion_valid_for", models.IntegerField(default=86400)),
|
|
|
|
("signing", models.BooleanField(default=True)),
|
|
|
|
("signing_cert", models.TextField()),
|
|
|
|
("signing_key", models.TextField()),
|
2018-11-16 10:41:14 +00:00
|
|
|
],
|
|
|
|
options={
|
2019-12-31 11:51:16 +00:00
|
|
|
"verbose_name": "SAML Provider",
|
|
|
|
"verbose_name_plural": "SAML Providers",
|
2018-11-16 10:41:14 +00:00
|
|
|
},
|
2019-12-31 11:51:16 +00:00
|
|
|
bases=("passbook_core.provider",),
|
2018-11-16 10:41:14 +00:00
|
|
|
),
|
|
|
|
]
|