From ba4af1372c5e836a66ad9ba0193ffb763657788b Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Fri, 12 Jun 2015 16:46:50 +0200 Subject: [PATCH] squashmigrations --- cas_server/migrations/0001_initial.py | 127 ------- .../0001_squashed_0021_auto_20150611_2102.py | 337 ++++++++++++++++++ .../migrations/0002_auto_20150517_1406.py | 32 -- .../migrations/0003_auto_20150518_1648.py | 30 -- .../migrations/0004_auto_20150518_1659.py | 47 --- .../migrations/0005_auto_20150518_1717.py | 56 --- .../migrations/0006_auto_20150518_1720.py | 20 -- .../migrations/0007_auto_20150518_1727.py | 35 -- .../migrations/0008_servicepattern_name.py | 20 -- .../migrations/0009_auto_20150518_1740.py | 20 -- .../migrations/0010_auto_20150518_2139.py | 24 -- .../migrations/0011_auto_20150523_1731.py | 18 - .../migrations/0012_auto_20150527_1956.py | 18 - .../0013_servicepattern_single_sign_out.py | 20 -- .../migrations/0014_auto_20150528_0012.py | 108 ------ .../migrations/0015_auto_20150528_1202.py | 32 -- .../migrations/0016_auto_20150528_1326.py | 26 -- .../migrations/0017_remove_user_attributs.py | 18 - .../migrations/0018_auto_20150608_1621.py | 26 -- .../migrations/0019_auto_20150609_1903.py | 31 -- .../migrations/0020_auto_20150609_1917.py | 21 -- .../migrations/0021_auto_20150611_2102.py | 28 -- 22 files changed, 337 insertions(+), 757 deletions(-) delete mode 100644 cas_server/migrations/0001_initial.py create mode 100644 cas_server/migrations/0001_squashed_0021_auto_20150611_2102.py delete mode 100644 cas_server/migrations/0002_auto_20150517_1406.py delete mode 100644 cas_server/migrations/0003_auto_20150518_1648.py delete mode 100644 cas_server/migrations/0004_auto_20150518_1659.py delete mode 100644 cas_server/migrations/0005_auto_20150518_1717.py delete mode 100644 cas_server/migrations/0006_auto_20150518_1720.py delete mode 100644 cas_server/migrations/0007_auto_20150518_1727.py delete mode 100644 cas_server/migrations/0008_servicepattern_name.py delete mode 100644 cas_server/migrations/0009_auto_20150518_1740.py delete mode 100644 cas_server/migrations/0010_auto_20150518_2139.py delete mode 100644 cas_server/migrations/0011_auto_20150523_1731.py delete mode 100644 cas_server/migrations/0012_auto_20150527_1956.py delete mode 100644 cas_server/migrations/0013_servicepattern_single_sign_out.py delete mode 100644 cas_server/migrations/0014_auto_20150528_0012.py delete mode 100644 cas_server/migrations/0015_auto_20150528_1202.py delete mode 100644 cas_server/migrations/0016_auto_20150528_1326.py delete mode 100644 cas_server/migrations/0017_remove_user_attributs.py delete mode 100644 cas_server/migrations/0018_auto_20150608_1621.py delete mode 100644 cas_server/migrations/0019_auto_20150609_1903.py delete mode 100644 cas_server/migrations/0020_auto_20150609_1917.py delete mode 100644 cas_server/migrations/0021_auto_20150611_2102.py diff --git a/cas_server/migrations/0001_initial.py b/cas_server/migrations/0001_initial.py deleted file mode 100644 index 6a1294a..0000000 --- a/cas_server/migrations/0001_initial.py +++ /dev/null @@ -1,127 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import cas_server.models -import picklefield.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ] - - operations = [ - migrations.CreateModel( - name='Proxy', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('url', models.CharField(max_length=255)), - ], - options={ - 'ordering': ('-pk',), - }, - bases=(models.Model,), - ), - migrations.CreateModel( - name='ProxyGrantingTicket', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('attributs', picklefield.fields.PickledObjectField(editable=False)), - ('validate', models.BooleanField(default=False)), - ('service', models.TextField()), - ('creation', models.DateTimeField(auto_now_add=True)), - ('renew', models.BooleanField(default=False)), - ('value', models.CharField(default=cas_server.utils.gen_pgt, unique=True, max_length=255)), - ], - options={ - 'abstract': False, - }, - bases=(models.Model,), - ), - migrations.CreateModel( - name='ProxyTicket', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('attributs', picklefield.fields.PickledObjectField(editable=False)), - ('validate', models.BooleanField(default=False)), - ('service', models.TextField()), - ('creation', models.DateTimeField(auto_now_add=True)), - ('renew', models.BooleanField(default=False)), - ('value', models.CharField(default=cas_server.utils.gen_pt, unique=True, max_length=255)), - ], - options={ - 'abstract': False, - }, - bases=(models.Model,), - ), - migrations.CreateModel( - name='ServicePattern', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('pos', models.IntegerField(default=100)), - ('pattern', models.CharField(unique=True, max_length=255)), - ('user_field', models.CharField(default=b'', help_text=b"Nom de l'attribut transmit comme username, vide = login", max_length=255, blank=True)), - ('usernames', models.CharField(default=b'', help_text=b"Liste d'utilisateurs accept\xc3\xa9s s\xc3\xa9par\xc3\xa9 par des virgules, vide = tous les utilisateur", max_length=255, blank=True)), - ('attributs', models.CharField(default=b'', help_text=b"Liste des nom d'attributs \xc3\xa0 transmettre au service, s\xc3\xa9par\xc3\xa9 par une virgule. vide = aucun", max_length=255, blank=True)), - ('proxy', models.BooleanField(default=False, help_text=b"Un ProxyGrantingTicket peut \xc3\xaatre d\xc3\xa9livr\xc3\xa9 au service pour s'authentifier en temps que l'utilisateur sur d'autres services")), - ('filter', models.CharField(default=b'', help_text=b'Une lambda fonction pour filtrer sur les utilisateur o\xc3\xb9 leurs attribut, arg1: username, arg2:attrs_dict. vide = pas de filtre', max_length=255, blank=True)), - ], - options={ - 'ordering': ('pos',), - }, - bases=(models.Model,), - ), - migrations.CreateModel( - name='ServiceTicket', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('attributs', picklefield.fields.PickledObjectField(editable=False)), - ('validate', models.BooleanField(default=False)), - ('service', models.TextField()), - ('creation', models.DateTimeField(auto_now_add=True)), - ('renew', models.BooleanField(default=False)), - ('value', models.CharField(default=cas_server.utils.gen_st, unique=True, max_length=255)), - ], - options={ - 'abstract': False, - }, - bases=(models.Model,), - ), - migrations.CreateModel( - name='User', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('username', models.CharField(unique=True, max_length=30)), - ('attributs', picklefield.fields.PickledObjectField(editable=False)), - ('date', models.DateTimeField(auto_now=True, auto_now_add=True)), - ], - options={ - }, - bases=(models.Model,), - ), - migrations.AddField( - model_name='serviceticket', - name='user', - field=models.ForeignKey(related_name='serviceticket', to='cas_server.User'), - preserve_default=True, - ), - migrations.AddField( - model_name='proxyticket', - name='user', - field=models.ForeignKey(related_name='proxyticket', to='cas_server.User'), - preserve_default=True, - ), - migrations.AddField( - model_name='proxygrantingticket', - name='user', - field=models.ForeignKey(related_name='proxygrantingticket', to='cas_server.User'), - preserve_default=True, - ), - migrations.AddField( - model_name='proxy', - name='proxy_ticket', - field=models.ForeignKey(related_name='proxies', to='cas_server.ProxyTicket'), - preserve_default=True, - ), - ] diff --git a/cas_server/migrations/0001_squashed_0021_auto_20150611_2102.py b/cas_server/migrations/0001_squashed_0021_auto_20150611_2102.py new file mode 100644 index 0000000..7d5bf54 --- /dev/null +++ b/cas_server/migrations/0001_squashed_0021_auto_20150611_2102.py @@ -0,0 +1,337 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import django.db.models.deletion +import cas_server.utils +import picklefield.fields + + +class Migration(migrations.Migration): + + replaces = [(b'cas_server', '0001_initial'), (b'cas_server', '0002_auto_20150517_1406'), (b'cas_server', '0003_auto_20150518_1648'), (b'cas_server', '0004_auto_20150518_1659'), (b'cas_server', '0005_auto_20150518_1717'), (b'cas_server', '0006_auto_20150518_1720'), (b'cas_server', '0007_auto_20150518_1727'), (b'cas_server', '0008_servicepattern_name'), (b'cas_server', '0009_auto_20150518_1740'), (b'cas_server', '0010_auto_20150518_2139'), (b'cas_server', '0011_auto_20150523_1731'), (b'cas_server', '0012_auto_20150527_1956'), (b'cas_server', '0013_servicepattern_single_sign_out'), (b'cas_server', '0014_auto_20150528_0012'), (b'cas_server', '0015_auto_20150528_1202'), (b'cas_server', '0016_auto_20150528_1326'), (b'cas_server', '0017_remove_user_attributs'), (b'cas_server', '0018_auto_20150608_1621'), (b'cas_server', '0019_auto_20150609_1903'), (b'cas_server', '0020_auto_20150609_1917'), (b'cas_server', '0021_auto_20150611_2102')] + + dependencies = [ + ('sessions', '0001_initial'), + ] + + operations = [ + migrations.CreateModel( + name='Proxy', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('url', models.CharField(max_length=255)), + ], + options={ + 'ordering': ('-pk',), + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='ProxyGrantingTicket', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('attributs', picklefield.fields.PickledObjectField(editable=False)), + ('validate', models.BooleanField(default=False)), + ('service', models.TextField()), + ('creation', models.DateTimeField(auto_now_add=True)), + ('renew', models.BooleanField(default=False)), + ('value', models.CharField(default=cas_server.utils.gen_pgt, unique=True, max_length=255)), + ], + options={ + 'abstract': False, + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='ProxyTicket', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('attributs', picklefield.fields.PickledObjectField(editable=False)), + ('validate', models.BooleanField(default=False)), + ('service', models.TextField()), + ('creation', models.DateTimeField(auto_now_add=True)), + ('renew', models.BooleanField(default=False)), + ('value', models.CharField(default=cas_server.utils.gen_pt, unique=True, max_length=255)), + ], + options={ + 'abstract': False, + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='ServicePattern', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('pos', models.IntegerField(default=100)), + ('pattern', models.CharField(unique=True, max_length=255)), + ('user_field', models.CharField(default=b'', help_text=b"Nom de l'attribut transmit comme username, vide = login", max_length=255, blank=True)), + ('usernames', models.CharField(default=b'', help_text=b"Liste d'utilisateurs accept\xc3\xa9s s\xc3\xa9par\xc3\xa9 par des virgules, vide = tous les utilisateur", max_length=255, blank=True)), + ('attributs', models.CharField(default=b'', help_text=b"Liste des nom d'attributs \xc3\xa0 transmettre au service, s\xc3\xa9par\xc3\xa9 par une virgule. vide = aucun", max_length=255, blank=True)), + ('proxy', models.BooleanField(default=False, help_text=b"Un ProxyGrantingTicket peut \xc3\xaatre d\xc3\xa9livr\xc3\xa9 au service pour s'authentifier en temps que l'utilisateur sur d'autres services")), + ('filter', models.CharField(default=b'', help_text=b'Une lambda fonction pour filtrer sur les utilisateur o\xc3\xb9 leurs attribut, arg1: username, arg2:attrs_dict. vide = pas de filtre', max_length=255, blank=True)), + ], + options={ + 'ordering': ('pos',), + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='ServiceTicket', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('attributs', picklefield.fields.PickledObjectField(editable=False)), + ('validate', models.BooleanField(default=False)), + ('service', models.TextField()), + ('creation', models.DateTimeField(auto_now_add=True)), + ('renew', models.BooleanField(default=False)), + ('value', models.CharField(default=cas_server.utils.gen_st, unique=True, max_length=255)), + ], + options={ + 'abstract': False, + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='User', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('username', models.CharField(max_length=30)), + ('date', models.DateTimeField(auto_now=True, auto_now_add=True)), + ('session', models.OneToOneField(related_name='cas_server_user', null=True, blank=True, to='sessions.Session')), + ], + options={ + }, + bases=(models.Model,), + ), + migrations.AddField( + model_name='serviceticket', + name='user', + field=models.ForeignKey(related_name='serviceticket', to='cas_server.User'), + preserve_default=True, + ), + migrations.AddField( + model_name='proxyticket', + name='user', + field=models.ForeignKey(related_name='proxyticket', to='cas_server.User'), + preserve_default=True, + ), + migrations.AddField( + model_name='proxygrantingticket', + name='user', + field=models.ForeignKey(related_name='proxygrantingticket', to='cas_server.User'), + preserve_default=True, + ), + migrations.AddField( + model_name='proxy', + name='proxy_ticket', + field=models.ForeignKey(related_name='proxies', to='cas_server.ProxyTicket'), + preserve_default=True, + ), + migrations.AddField( + model_name='proxygrantingticket', + name='service_pattern', + field=models.ForeignKey(related_name='proxygrantingticket', default=1, to='cas_server.ServicePattern'), + preserve_default=False, + ), + migrations.AddField( + model_name='proxyticket', + name='service_pattern', + field=models.ForeignKey(related_name='proxyticket', default=1, to='cas_server.ServicePattern'), + preserve_default=False, + ), + migrations.AddField( + model_name='serviceticket', + name='service_pattern', + field=models.ForeignKey(related_name='serviceticket', default=1, to='cas_server.ServicePattern'), + preserve_default=False, + ), + migrations.CreateModel( + name='ReplaceAttributName', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(help_text="nom d'un attributs \xe0 transmettre au service", max_length=255)), + ('replace', models.CharField(help_text="nom sous lequel l'attribut sera pr\xe9sent\xe9 au service. vide = inchang\xe9", max_length=255, blank=True)), + ('service_pattern', models.ForeignKey(related_name='attributs', to='cas_server.ServicePattern')), + ], + options={ + }, + bases=(models.Model,), + ), + migrations.RemoveField( + model_name='servicepattern', + name='attributs', + ), + migrations.CreateModel( + name='FilterAttributValue', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('attribut', models.CharField(help_text='Name of the attribut which must verify pattern', max_length=255, verbose_name='attribut')), + ('pattern', models.CharField(help_text='a regular expression', max_length=255, verbose_name='pattern')), + ('service_pattern', models.ForeignKey(related_name='filters', to='cas_server.ServicePattern')), + ], + options={ + }, + bases=(models.Model,), + ), + migrations.CreateModel( + name='ReplaceAttributValue', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('attribut', models.CharField(help_text='Name of the attribut for which the value must be replace', max_length=255, verbose_name='attribut')), + ('pattern', models.CharField(help_text='An regular expression maching whats need to be replaced', max_length=255, verbose_name='pattern')), + ('replace', models.CharField(help_text='replace expression, groups are capture by \\1, \\2 \u2026', max_length=255, verbose_name='replace', blank=True)), + ('service_pattern', models.ForeignKey(related_name='replacements', to='cas_server.ServicePattern')), + ], + options={ + }, + bases=(models.Model,), + ), + migrations.RemoveField( + model_name='servicepattern', + name='filter', + ), + migrations.CreateModel( + name='Username', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('value', models.CharField(help_text='username allowed to connect to the service', max_length=255, verbose_name='username')), + ('service_pattern', models.ForeignKey(related_name='usernames', to='cas_server.ServicePattern')), + ], + options={ + }, + bases=(models.Model,), + ), + migrations.RemoveField( + model_name='servicepattern', + name='usernames', + ), + migrations.AddField( + model_name='servicepattern', + name='restrict_users', + field=models.BooleanField(default=False, help_text='Limit username allowed to connect to the list provided bellow', verbose_name='restrict username'), + preserve_default=True, + ), + migrations.AddField( + model_name='servicepattern', + name='name', + field=models.CharField(null=True, max_length=255, blank=True, help_text='A name for the service', unique=True, verbose_name='name'), + preserve_default=True, + ), + migrations.AlterUniqueTogether( + name='replaceattributname', + unique_together=set([('name', 'service_pattern')]), + ), + migrations.AlterUniqueTogether( + name='replaceattributname', + unique_together=set([('name', 'replace', 'service_pattern')]), + ), + migrations.AddField( + model_name='servicepattern', + name='single_log_out', + field=models.BooleanField(default=False, help_text='Enable SLO for the service', verbose_name='single log out'), + preserve_default=True, + ), + migrations.AlterField( + model_name='replaceattributname', + name='name', + field=models.CharField(help_text='name of an attribut to send to the service', max_length=255, verbose_name='name'), + preserve_default=True, + ), + migrations.AlterField( + model_name='replaceattributname', + name='replace', + field=models.CharField(help_text='name under which the attribut will be showto the service. empty = default name of the attribut', max_length=255, verbose_name='replace', blank=True), + preserve_default=True, + ), + migrations.AlterField( + model_name='servicepattern', + name='pattern', + field=models.CharField(unique=True, max_length=255, verbose_name='pattern'), + preserve_default=True, + ), + migrations.AlterField( + model_name='servicepattern', + name='pos', + field=models.IntegerField(default=100, verbose_name='position'), + preserve_default=True, + ), + migrations.AlterField( + model_name='servicepattern', + name='proxy', + field=models.BooleanField(default=False, help_text='A ProxyGrantingTicket can be delivered to the service in order to authenticate for the user on a backend service', verbose_name='proxy'), + preserve_default=True, + ), + migrations.AlterField( + model_name='servicepattern', + name='user_field', + field=models.CharField(default=b'', help_text='Name of the attribut to transmit as username, empty = login', max_length=255, verbose_name='user field', blank=True), + preserve_default=True, + ), + migrations.AddField( + model_name='proxygrantingticket', + name='single_log_out', + field=models.BooleanField(default=False), + preserve_default=True, + ), + migrations.AddField( + model_name='proxyticket', + name='single_log_out', + field=models.BooleanField(default=False), + preserve_default=True, + ), + migrations.AddField( + model_name='serviceticket', + name='single_log_out', + field=models.BooleanField(default=False), + preserve_default=True, + ), + migrations.AddField( + model_name='servicepattern', + name='proxy_callback', + field=models.BooleanField(default=False, help_text='can be used as a proxy callback to deliver PGT', verbose_name='proxy callback'), + preserve_default=True, + ), + migrations.AlterField( + model_name='servicepattern', + name='proxy', + field=models.BooleanField(default=False, help_text='Proxy tickets can be delivered to the service', verbose_name='proxy'), + preserve_default=True, + ), + migrations.AddField( + model_name='servicepattern', + name='single_log_out_callback', + field=models.CharField(default=b'', help_text='URL where the SLO request will be POST. empty = service url\nThis is usefull for non HTTP proxied services.', max_length=255, verbose_name='single log out callback', blank=True), + preserve_default=True, + ), + migrations.AlterField( + model_name='replaceattributname', + name='name', + field=models.CharField(help_text='name of an attribut to send to the service, use * for all attributes', max_length=255, verbose_name='name'), + preserve_default=True, + ), + migrations.AlterUniqueTogether( + name='user', + unique_together=set([('username', 'session')]), + ), + migrations.AlterField( + model_name='user', + name='session', + field=models.OneToOneField(related_name='cas_server_user', null=True, on_delete=django.db.models.deletion.SET_NULL, blank=True, to='sessions.Session'), + preserve_default=True, + ), + migrations.AddField( + model_name='user', + name='session_key', + field=models.CharField(max_length=40, null=True, blank=True), + preserve_default=True, + ), + migrations.AlterUniqueTogether( + name='user', + unique_together=set([('username', 'session_key')]), + ), + migrations.RemoveField( + model_name='user', + name='session', + ), + ] diff --git a/cas_server/migrations/0002_auto_20150517_1406.py b/cas_server/migrations/0002_auto_20150517_1406.py deleted file mode 100644 index 0876d86..0000000 --- a/cas_server/migrations/0002_auto_20150517_1406.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('cas_server', '0001_initial'), - ] - - operations = [ - migrations.AddField( - model_name='proxygrantingticket', - name='service_pattern', - field=models.ForeignKey(related_name='proxygrantingticket', default=1, to='cas_server.ServicePattern'), - preserve_default=False, - ), - migrations.AddField( - model_name='proxyticket', - name='service_pattern', - field=models.ForeignKey(related_name='proxyticket', default=1, to='cas_server.ServicePattern'), - preserve_default=False, - ), - migrations.AddField( - model_name='serviceticket', - name='service_pattern', - field=models.ForeignKey(related_name='serviceticket', default=1, to='cas_server.ServicePattern'), - preserve_default=False, - ), - ] diff --git a/cas_server/migrations/0003_auto_20150518_1648.py b/cas_server/migrations/0003_auto_20150518_1648.py deleted file mode 100644 index e4f3dbc..0000000 --- a/cas_server/migrations/0003_auto_20150518_1648.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('cas_server', '0002_auto_20150517_1406'), - ] - - operations = [ - migrations.CreateModel( - name='Attribut', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('name', models.CharField(max_length=255)), - ('replace', models.CharField(default=b'', max_length=255, blank=True)), - ('service_pattern', models.ForeignKey(related_name='attributs', to='cas_server.ServicePattern')), - ], - options={ - }, - bases=(models.Model,), - ), - migrations.RemoveField( - model_name='servicepattern', - name='attributs', - ), - ] diff --git a/cas_server/migrations/0004_auto_20150518_1659.py b/cas_server/migrations/0004_auto_20150518_1659.py deleted file mode 100644 index f6b93de..0000000 --- a/cas_server/migrations/0004_auto_20150518_1659.py +++ /dev/null @@ -1,47 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('cas_server', '0003_auto_20150518_1648'), - ] - - operations = [ - migrations.CreateModel( - name='FilterAttributValue', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('attribut', models.CharField(max_length=255)), - ('pattern', models.CharField(max_length=255)), - ('service_pattern', models.ForeignKey(related_name='filters', to='cas_server.ServicePattern')), - ], - options={ - }, - bases=(models.Model,), - ), - migrations.CreateModel( - name='ReplaceAttributValue', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('attribut', models.CharField(max_length=255)), - ('pattern', models.CharField(max_length=255)), - ('replace', models.CharField(max_length=255)), - ('service_pattern', models.ForeignKey(related_name='replacements', to='cas_server.ServicePattern')), - ], - options={ - }, - bases=(models.Model,), - ), - migrations.RenameModel( - old_name='Attribut', - new_name='ReplaceAttributName', - ), - migrations.RemoveField( - model_name='servicepattern', - name='filter', - ), - ] diff --git a/cas_server/migrations/0005_auto_20150518_1717.py b/cas_server/migrations/0005_auto_20150518_1717.py deleted file mode 100644 index df7ae40..0000000 --- a/cas_server/migrations/0005_auto_20150518_1717.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('cas_server', '0004_auto_20150518_1659'), - ] - - operations = [ - migrations.AlterField( - model_name='filterattributvalue', - name='attribut', - field=models.CharField(help_text="Nom de l'attribut devant v\xe9rifier pattern", max_length=255), - preserve_default=True, - ), - migrations.AlterField( - model_name='filterattributvalue', - name='pattern', - field=models.CharField(help_text='Une expression r\xe9guli\xe8re', max_length=255), - preserve_default=True, - ), - migrations.AlterField( - model_name='replaceattributname', - name='name', - field=models.CharField(help_text="nom d'un attributs \xe0 transmettre au service", max_length=255), - preserve_default=True, - ), - migrations.AlterField( - model_name='replaceattributname', - name='replace', - field=models.CharField(help_text="nom sous lequel l'attribut sera pr\xe9sent\xe9 au service. vide = inchang\xe9", max_length=255, blank=True), - preserve_default=True, - ), - migrations.AlterField( - model_name='replaceattributvalue', - name='attribut', - field=models.CharField(help_text="Nom de l'attribut dont la valeur doit \xeatre modifi\xe9", max_length=255), - preserve_default=True, - ), - migrations.AlterField( - model_name='replaceattributvalue', - name='pattern', - field=models.CharField(help_text='Une expression r\xe9guli\xe8re de ce qui doit \xeatre modifi\xe9', max_length=255), - preserve_default=True, - ), - migrations.AlterField( - model_name='replaceattributvalue', - name='replace', - field=models.CharField(help_text='Par quoi le remplacer, les groupes sont captur\xe9 par \\1, \\2 \u2026', max_length=255, blank=True), - preserve_default=True, - ), - ] diff --git a/cas_server/migrations/0006_auto_20150518_1720.py b/cas_server/migrations/0006_auto_20150518_1720.py deleted file mode 100644 index 15b503d..0000000 --- a/cas_server/migrations/0006_auto_20150518_1720.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('cas_server', '0005_auto_20150518_1717'), - ] - - operations = [ - migrations.AlterField( - model_name='replaceattributname', - name='name', - field=models.CharField(help_text="nom d'un attributs \xe0 transmettre au service", unique=True, max_length=255), - preserve_default=True, - ), - ] diff --git a/cas_server/migrations/0007_auto_20150518_1727.py b/cas_server/migrations/0007_auto_20150518_1727.py deleted file mode 100644 index 4ee050f..0000000 --- a/cas_server/migrations/0007_auto_20150518_1727.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('cas_server', '0006_auto_20150518_1720'), - ] - - operations = [ - migrations.CreateModel( - name='Usernames', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('value', models.CharField(max_length=255)), - ('service_pattern', models.ForeignKey(related_name='usernames', to='cas_server.ServicePattern')), - ], - options={ - }, - bases=(models.Model,), - ), - migrations.RemoveField( - model_name='servicepattern', - name='usernames', - ), - migrations.AddField( - model_name='servicepattern', - name='restrict_users', - field=models.BooleanField(default=False, help_text=b'Limiter les utilisateur autoris\xc3\xa9 a se connect\xc3\xa9 a ce service \xc3\xa0 celle ci-dessous'), - preserve_default=True, - ), - ] diff --git a/cas_server/migrations/0008_servicepattern_name.py b/cas_server/migrations/0008_servicepattern_name.py deleted file mode 100644 index 9a30141..0000000 --- a/cas_server/migrations/0008_servicepattern_name.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('cas_server', '0007_auto_20150518_1727'), - ] - - operations = [ - migrations.AddField( - model_name='servicepattern', - name='name', - field=models.CharField(max_length=255, unique=True, null=True, blank=True), - preserve_default=True, - ), - ] diff --git a/cas_server/migrations/0009_auto_20150518_1740.py b/cas_server/migrations/0009_auto_20150518_1740.py deleted file mode 100644 index e119c3d..0000000 --- a/cas_server/migrations/0009_auto_20150518_1740.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('cas_server', '0008_servicepattern_name'), - ] - - operations = [ - migrations.AlterField( - model_name='servicepattern', - name='name', - field=models.CharField(help_text=b'Un nom pour le service', max_length=255, unique=True, null=True, blank=True), - preserve_default=True, - ), - ] diff --git a/cas_server/migrations/0010_auto_20150518_2139.py b/cas_server/migrations/0010_auto_20150518_2139.py deleted file mode 100644 index 8a526d0..0000000 --- a/cas_server/migrations/0010_auto_20150518_2139.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('cas_server', '0009_auto_20150518_1740'), - ] - - operations = [ - migrations.AlterField( - model_name='replaceattributname', - name='name', - field=models.CharField(help_text="nom d'un attributs \xe0 transmettre au service", max_length=255), - preserve_default=True, - ), - migrations.AlterUniqueTogether( - name='replaceattributname', - unique_together=set([('name', 'service_pattern')]), - ), - ] diff --git a/cas_server/migrations/0011_auto_20150523_1731.py b/cas_server/migrations/0011_auto_20150523_1731.py deleted file mode 100644 index 13ca118..0000000 --- a/cas_server/migrations/0011_auto_20150523_1731.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('cas_server', '0010_auto_20150518_2139'), - ] - - operations = [ - migrations.AlterUniqueTogether( - name='replaceattributname', - unique_together=set([('name', 'replace', 'service_pattern')]), - ), - ] diff --git a/cas_server/migrations/0012_auto_20150527_1956.py b/cas_server/migrations/0012_auto_20150527_1956.py deleted file mode 100644 index e24952c..0000000 --- a/cas_server/migrations/0012_auto_20150527_1956.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('cas_server', '0011_auto_20150523_1731'), - ] - - operations = [ - migrations.RenameModel( - old_name='Usernames', - new_name='Username', - ), - ] diff --git a/cas_server/migrations/0013_servicepattern_single_sign_out.py b/cas_server/migrations/0013_servicepattern_single_sign_out.py deleted file mode 100644 index 8d4a71b..0000000 --- a/cas_server/migrations/0013_servicepattern_single_sign_out.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('cas_server', '0012_auto_20150527_1956'), - ] - - operations = [ - migrations.AddField( - model_name='servicepattern', - name='single_sign_out', - field=models.BooleanField(default=False, help_text=b'Activer le SSO sur le service'), - preserve_default=True, - ), - ] diff --git a/cas_server/migrations/0014_auto_20150528_0012.py b/cas_server/migrations/0014_auto_20150528_0012.py deleted file mode 100644 index a62e7f6..0000000 --- a/cas_server/migrations/0014_auto_20150528_0012.py +++ /dev/null @@ -1,108 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('cas_server', '0013_servicepattern_single_sign_out'), - ] - - operations = [ - migrations.RemoveField( - model_name='servicepattern', - name='single_sign_out', - ), - migrations.AddField( - model_name='servicepattern', - name='single_log_out', - field=models.BooleanField(default=False, help_text='Enable SLO for the service', verbose_name='single log out'), - preserve_default=True, - ), - migrations.AlterField( - model_name='filterattributvalue', - name='attribut', - field=models.CharField(help_text='Name of the attribut which must verify pattern', max_length=255, verbose_name='attribut'), - preserve_default=True, - ), - migrations.AlterField( - model_name='filterattributvalue', - name='pattern', - field=models.CharField(help_text='a regular expression', max_length=255, verbose_name='pattern'), - preserve_default=True, - ), - migrations.AlterField( - model_name='replaceattributname', - name='name', - field=models.CharField(help_text='name of an attribut to send to the service', max_length=255, verbose_name='name'), - preserve_default=True, - ), - migrations.AlterField( - model_name='replaceattributname', - name='replace', - field=models.CharField(help_text='name under which the attribut will be showto the service. empty = default name of the attribut', max_length=255, verbose_name='replace', blank=True), - preserve_default=True, - ), - migrations.AlterField( - model_name='replaceattributvalue', - name='attribut', - field=models.CharField(help_text='Name of the attribut for which the value must be replace', max_length=255, verbose_name='attribut'), - preserve_default=True, - ), - migrations.AlterField( - model_name='replaceattributvalue', - name='pattern', - field=models.CharField(help_text='An regular expression maching whats need to be replaced', max_length=255, verbose_name='pattern'), - preserve_default=True, - ), - migrations.AlterField( - model_name='replaceattributvalue', - name='replace', - field=models.CharField(help_text='replace expression, groups are capture by \\1, \\2 \u2026', max_length=255, verbose_name='replace', blank=True), - preserve_default=True, - ), - migrations.AlterField( - model_name='servicepattern', - name='name', - field=models.CharField(null=True, max_length=255, blank=True, help_text='A name for the service', unique=True, verbose_name='name'), - preserve_default=True, - ), - migrations.AlterField( - model_name='servicepattern', - name='pattern', - field=models.CharField(unique=True, max_length=255, verbose_name='pattern'), - preserve_default=True, - ), - migrations.AlterField( - model_name='servicepattern', - name='pos', - field=models.IntegerField(default=100, verbose_name='position'), - preserve_default=True, - ), - migrations.AlterField( - model_name='servicepattern', - name='proxy', - field=models.BooleanField(default=False, help_text='A ProxyGrantingTicket can be delivered to the service in order to authenticate for the user on a backend service', verbose_name='proxy'), - preserve_default=True, - ), - migrations.AlterField( - model_name='servicepattern', - name='restrict_users', - field=models.BooleanField(default=False, help_text='Limit username allowed to connect to the list provided bellow', verbose_name='restrict username'), - preserve_default=True, - ), - migrations.AlterField( - model_name='servicepattern', - name='user_field', - field=models.CharField(default=b'', help_text='Name of the attribut to transmit as username, empty = login', max_length=255, verbose_name='user field', blank=True), - preserve_default=True, - ), - migrations.AlterField( - model_name='username', - name='value', - field=models.CharField(help_text='username allowed to connect to the service', max_length=255, verbose_name='username'), - preserve_default=True, - ), - ] diff --git a/cas_server/migrations/0015_auto_20150528_1202.py b/cas_server/migrations/0015_auto_20150528_1202.py deleted file mode 100644 index da29498..0000000 --- a/cas_server/migrations/0015_auto_20150528_1202.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('cas_server', '0014_auto_20150528_0012'), - ] - - operations = [ - migrations.AddField( - model_name='proxygrantingticket', - name='single_log_out', - field=models.BooleanField(default=False), - preserve_default=True, - ), - migrations.AddField( - model_name='proxyticket', - name='single_log_out', - field=models.BooleanField(default=False), - preserve_default=True, - ), - migrations.AddField( - model_name='serviceticket', - name='single_log_out', - field=models.BooleanField(default=False), - preserve_default=True, - ), - ] diff --git a/cas_server/migrations/0016_auto_20150528_1326.py b/cas_server/migrations/0016_auto_20150528_1326.py deleted file mode 100644 index 2e250fb..0000000 --- a/cas_server/migrations/0016_auto_20150528_1326.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('cas_server', '0015_auto_20150528_1202'), - ] - - operations = [ - migrations.AddField( - model_name='servicepattern', - name='proxy_callback', - field=models.BooleanField(default=False, help_text='can be used as a proxy callback to deliver PGT', verbose_name='proxy callback'), - preserve_default=True, - ), - migrations.AlterField( - model_name='servicepattern', - name='proxy', - field=models.BooleanField(default=False, help_text='Proxy tickets can be delivered to the service', verbose_name='proxy'), - preserve_default=True, - ), - ] diff --git a/cas_server/migrations/0017_remove_user_attributs.py b/cas_server/migrations/0017_remove_user_attributs.py deleted file mode 100644 index 651b69f..0000000 --- a/cas_server/migrations/0017_remove_user_attributs.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('cas_server', '0016_auto_20150528_1326'), - ] - - operations = [ - migrations.RemoveField( - model_name='user', - name='attributs', - ), - ] diff --git a/cas_server/migrations/0018_auto_20150608_1621.py b/cas_server/migrations/0018_auto_20150608_1621.py deleted file mode 100644 index d38cebc..0000000 --- a/cas_server/migrations/0018_auto_20150608_1621.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('cas_server', '0017_remove_user_attributs'), - ] - - operations = [ - migrations.AddField( - model_name='servicepattern', - name='single_log_out_callback', - field=models.CharField(default=b'', help_text='URL where the SLO request will be POST. empty = service url\nThis is usefull for non HTTP proxied services.', max_length=255, verbose_name='single log out callback', blank=True), - preserve_default=True, - ), - migrations.AlterField( - model_name='replaceattributname', - name='name', - field=models.CharField(help_text='name of an attribut to send to the service, use * for all attributes', max_length=255, verbose_name='name'), - preserve_default=True, - ), - ] diff --git a/cas_server/migrations/0019_auto_20150609_1903.py b/cas_server/migrations/0019_auto_20150609_1903.py deleted file mode 100644 index 90ca8a2..0000000 --- a/cas_server/migrations/0019_auto_20150609_1903.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('sessions', '0001_initial'), - ('cas_server', '0018_auto_20150608_1621'), - ] - - operations = [ - migrations.AddField( - model_name='user', - name='session', - field=models.OneToOneField(related_name='cas_server_user', null=True, blank=True, to='sessions.Session'), - preserve_default=True, - ), - migrations.AlterField( - model_name='user', - name='username', - field=models.CharField(max_length=30), - preserve_default=True, - ), - migrations.AlterUniqueTogether( - name='user', - unique_together=set([('username', 'session')]), - ), - ] diff --git a/cas_server/migrations/0020_auto_20150609_1917.py b/cas_server/migrations/0020_auto_20150609_1917.py deleted file mode 100644 index 9cdcc39..0000000 --- a/cas_server/migrations/0020_auto_20150609_1917.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('cas_server', '0019_auto_20150609_1903'), - ] - - operations = [ - migrations.AlterField( - model_name='user', - name='session', - field=models.OneToOneField(related_name='cas_server_user', null=True, on_delete=django.db.models.deletion.SET_NULL, blank=True, to='sessions.Session'), - preserve_default=True, - ), - ] diff --git a/cas_server/migrations/0021_auto_20150611_2102.py b/cas_server/migrations/0021_auto_20150611_2102.py deleted file mode 100644 index c1c0aa1..0000000 --- a/cas_server/migrations/0021_auto_20150611_2102.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('cas_server', '0020_auto_20150609_1917'), - ] - - operations = [ - migrations.AddField( - model_name='user', - name='session_key', - field=models.CharField(max_length=40, null=True, blank=True), - preserve_default=True, - ), - migrations.AlterUniqueTogether( - name='user', - unique_together=set([('username', 'session_key')]), - ), - migrations.RemoveField( - model_name='user', - name='session', - ), - ]