mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
Introduce sso UserEnterpriseAuth model.
This commit is contained in:
27
awx/sso/migrations/0001_initial.py
Normal file
27
awx/sso/migrations/0001_initial.py
Normal file
@@ -0,0 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='UserEnterpriseAuth',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('provider', models.CharField(max_length=32, choices=[(b'radius', 'RADIUS'), (b'tacacs+', 'TACACS+')])),
|
||||
('user', models.ForeignKey(related_name='enterprise_auth', to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name='userenterpriseauth',
|
||||
unique_together=set([('user', 'provider')]),
|
||||
),
|
||||
]
|
||||
0
awx/sso/migrations/__init__.py
Normal file
0
awx/sso/migrations/__init__.py
Normal file
Reference in New Issue
Block a user