From c9629f65ae48fc89cf01bb75262249373807f6ee Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Thu, 28 May 2015 02:13:09 +0200 Subject: [PATCH] s/SSO/SLO/ --- cas_server/admin.py | 2 +- cas_server/locale/en/LC_MESSAGES/django.mo | Bin 2266 -> 2266 bytes cas_server/locale/en/LC_MESSAGES/django.po | 6 +- cas_server/locale/fr/LC_MESSAGES/django.mo | Bin 4677 -> 4810 bytes cas_server/locale/fr/LC_MESSAGES/django.po | 12 +- .../migrations/0014_auto_20150528_0012.py | 108 ++++++++++++++++++ cas_server/models.py | 12 +- 7 files changed, 124 insertions(+), 16 deletions(-) create mode 100644 cas_server/migrations/0014_auto_20150528_0012.py diff --git a/cas_server/admin.py b/cas_server/admin.py index 16706c9..bad95c6 100644 --- a/cas_server/admin.py +++ b/cas_server/admin.py @@ -59,7 +59,7 @@ class ServicePatternAdmin(admin.ModelAdmin): ReplaceAttributValueInline, FilterAttributValueInline ) - list_display = ('pos', 'name', 'pattern', 'proxy', 'single_sign_out') + list_display = ('pos', 'name', 'pattern', 'proxy', 'single_log_out') admin.site.register(User, UserAdmin) diff --git a/cas_server/locale/en/LC_MESSAGES/django.mo b/cas_server/locale/en/LC_MESSAGES/django.mo index 756e260f863054a49256289362d182a261cb5578..5acc92e2a820aaa2c794d5fcdef45ee98e2f8702 100644 GIT binary patch delta 20 bcmca5cuR1DFblhdf`O5hp}}S;mIEvRK;#9F delta 20 bcmca5cuR1DFbli6f{~Gxso7>JmIEvRK`aHD diff --git a/cas_server/locale/en/LC_MESSAGES/django.po b/cas_server/locale/en/LC_MESSAGES/django.po index 2419f2b..9a30362 100644 --- a/cas_server/locale/en/LC_MESSAGES/django.po +++ b/cas_server/locale/en/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: cas_server\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-05-27 22:56+0200\n" +"POT-Creation-Date: 2015-05-28 02:10+0200\n" "PO-Revision-Date: 2015-05-23 19:03+0100\n" "Last-Translator: Valentin Samir \n" "Language-Team: django \n" @@ -84,13 +84,13 @@ msgid "" msgstr "" #: models.py:182 -msgid "single sign out" +msgid "single log out" msgstr "" #: models.py:183 #, fuzzy #| msgid "Connect to the service" -msgid "Enable SSO for the service" +msgid "Enable SLO for the service" msgstr "Connect to the service" #: models.py:225 diff --git a/cas_server/locale/fr/LC_MESSAGES/django.mo b/cas_server/locale/fr/LC_MESSAGES/django.mo index 033a5f4f9e199cff643f65f2d8a35f6e7166eb7b..a9f29a6d4f66e091836c296e5797b229f4fddc3d 100644 GIT binary patch delta 975 zcmYMyPe_w-7{Kvoo14?Lnq@}W`dON_Ez$L7mZlg|U}AI#IxJ)9O9?t(w@HbF)xnMh zFC&QT5)`9T4MZvE5W7^T2}nEvz+E z<%KKC)6A3ei1gq`FAdj8H&yI7AeQ44;HTG%(-hQIMBR#%Jc#a`TwN!JZ&1&_4J5AZo&44B;KDMF+X%35|aDIclCy z_<&XZf{Wyr>x|YJ{K7#DY!bPE=kPQxp{~GpH*T&IX(GOYd+-LH$2|7p54?o?SSAmN z=COwO)@G3{cn@{lLtGfA^O;T*Pw;CaTG)>B*n&^-1(r|?oY`6#zl?@>9d(a=OrJ?f z7^zj-kz*rA@Bk)o2uG0`r4W*l@=`AILjU*%b!kiPfDhPD{1tUCcQ#a(xZ8CI^^7D@ zw;=DVdJ}p$p5fwI|AseiPo~B!W8JhfRyI2^osOAnndw4@jHT?{EMA>6$*!15#?AWe zXHHMBP~B}h<0rd1ou9#$K&4-7sEPXcYG2(&|G@w6nQ_Zxtf_LEDJz|enMo^K$zhr7 ZbUNoIc~>xYD&wY+NoTDt?7Rv&{{Zc)gJ}Q& delta 838 zcmXZaO-K}B7{KvocJ|ZU{AhJ`EnQhh%UzarTW3YhKsrU_N65ODg<>y)LUyR*3ep~= zFd8~VP?uPh2wc2{(7{8|T{_eu58@?6B2Pm9$7Yy$fA911%*^wCe6{xaDnDDjuY_xm z=Q7WtAu@)aJTzQ2Q{*9TU^~XVB6%Fb30!ckp-p^wVM$AES@| zON9KA;RxxAPuzhOH=&BUcMft(-E|N3OzflXakKNqlMidjS9zF)Tyw%^ z)JQm%c~hr;{*^&z$?UQ;(sQ6IsN121>!k(iWVP^y`Ui8vFz(e0zEh908hjtf$Fted cVcW@sdj0gTk7nwHP|_r2wQ\n" "Language-Team: django \n" "Language: fr\n" @@ -88,12 +88,12 @@ msgstr "" "s'authentifier en temps l'utilisateur à un autre service" #: models.py:182 -msgid "single sign out" +msgid "single log out" msgstr "" #: models.py:183 -msgid "Enable SSO for the service" -msgstr "Active le SSO pour le service" +msgid "Enable SLO for the service" +msgstr "Active le SLO pour le service" #: models.py:225 msgid "username" @@ -140,7 +140,7 @@ msgstr "une expression régulière reconnaissant ce qui doit être remplacé" #: models.py:290 msgid "replace expression, groups are capture by \\1, \\2 …" -msgstr "" +msgstr "expression de remplacement, les groupe sont capturé par \\1, \\2" #: models.py:337 #, python-format diff --git a/cas_server/migrations/0014_auto_20150528_0012.py b/cas_server/migrations/0014_auto_20150528_0012.py new file mode 100644 index 0000000..a62e7f6 --- /dev/null +++ b/cas_server/migrations/0014_auto_20150528_0012.py @@ -0,0 +1,108 @@ +# -*- 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/models.py b/cas_server/models.py index 61b7644..401ebd1 100644 --- a/cas_server/models.py +++ b/cas_server/models.py @@ -66,7 +66,7 @@ class User(models.Model): return self.username def logout(self, request): - """Sending SSO request to all services the user logged in""" + """Sending SLO request to all services the user logged in""" async_list = [] session = FuturesSession(executor=ThreadPoolExecutor(max_workers=10)) for ticket in ServiceTicket.objects.filter(user=self, validate=True): @@ -177,10 +177,10 @@ class ServicePattern(models.Model): help_text=_("A ProxyGrantingTicket can be delivered to the service " \ "in order to authenticate for the user on a backend service") ) - single_sign_out = models.BooleanField( + single_log_out = models.BooleanField( default=False, - verbose_name=_(u"single sign out"), - help_text=_("Enable SSO for the service") + verbose_name=_(u"single log out"), + help_text=_("Enable SLO for the service") ) def __unicode__(self): @@ -311,8 +311,8 @@ class Ticket(models.Model): return u"Ticket(%s, %s)" % (self.user, self.service) def logout(self, request, session): - """Send a SSO request to the ticket service""" - if self.validate and self.service_pattern.single_sign_out: + """Send a SLO request to the ticket service""" + if self.validate and self.service_pattern.single_log_out: xml = """