46 lines
2.4 KiB
Python
46 lines
2.4 KiB
Python
# Generated by Django 1.11.12 on 2018-04-11 15:20
|
|
|
|
|
|
import django.db.models.deletion
|
|
import django.utils.timezone
|
|
import model_utils.fields
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
('verify_student', '0005_remove_deprecated_models'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='SSOVerification',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('status', model_utils.fields.StatusField(choices=[('created', 'created'), ('ready', 'ready'), ('submitted', 'submitted'), ('must_retry', 'must_retry'), ('approved', 'approved'), ('denied', 'denied')], default='created', max_length=100, no_check_for_status=True, verbose_name='status')),
|
|
('status_changed', model_utils.fields.MonitorField(default=django.utils.timezone.now, monitor='status', verbose_name='status changed')),
|
|
('name', models.CharField(blank=True, max_length=255)),
|
|
('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
|
|
('updated_at', models.DateTimeField(auto_now=True, db_index=True)),
|
|
(
|
|
'identity_provider_type',
|
|
models.CharField(
|
|
choices=[
|
|
('common.djangoapps.third_party_auth.models.OAuth2ProviderConfig', 'OAuth2 Provider'),
|
|
('common.djangoapps.third_party_auth.models.SAMLProviderConfig', 'SAML Provider'),
|
|
('common.djangoapps.third_party_auth.models.LTIProviderConfig', 'LTI Provider'),
|
|
],
|
|
default='common.djangoapps.third_party_auth.models.SAMLProviderConfig',
|
|
help_text='Specifies which type of Identity Provider this verification originated from.',
|
|
max_length=100,
|
|
),
|
|
),
|
|
('identity_provider_slug', models.SlugField(default='default', help_text='The slug uniquely identifying the Identity Provider this verification originated from.', max_length=30)),
|
|
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
|
],
|
|
),
|
|
]
|