Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
django-cas-server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Samir
django-cas-server
Commits
85b74bab
Commit
85b74bab
authored
Dec 17, 2015
by
Valentin Samir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add verbose name for cas_server app and models
parent
8e276844
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
137 additions
and
92 deletions
+137
-92
cas_server/__init__.py
cas_server/__init__.py
+2
-0
cas_server/apps.py
cas_server/apps.py
+7
-0
cas_server/locale/en/LC_MESSAGES/django.mo
cas_server/locale/en/LC_MESSAGES/django.mo
+0
-0
cas_server/locale/en/LC_MESSAGES/django.po
cas_server/locale/en/LC_MESSAGES/django.po
+62
-46
cas_server/locale/fr/LC_MESSAGES/django.mo
cas_server/locale/fr/LC_MESSAGES/django.mo
+0
-0
cas_server/locale/fr/LC_MESSAGES/django.po
cas_server/locale/fr/LC_MESSAGES/django.po
+62
-46
cas_server/models.py
cas_server/models.py
+4
-0
No files found.
cas_server/__init__.py
View file @
85b74bab
...
...
@@ -8,3 +8,5 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# (c) 2015 Valentin Samir
default_app_config
=
'cas_server.apps.AppConfig'
cas_server/apps.py
0 → 100644
View file @
85b74bab
from
django.utils.translation
import
ugettext_lazy
as
_
from
django.apps
import
AppConfig
class
AppConfig
(
AppConfig
):
name
=
'cas_server'
verbose_name
=
_
(
'Central Authentication Service'
)
cas_server/locale/en/LC_MESSAGES/django.mo
View file @
85b74bab
No preview for this file type
cas_server/locale/en/LC_MESSAGES/django.po
View file @
85b74bab
...
...
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: cas_server\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-12-1
2 18:20
+0100\n"
"PO-Revision-Date: 2015-12-1
2 18:20
+0100\n"
"POT-Creation-Date: 2015-12-1
7 19:21
+0100\n"
"PO-Revision-Date: 2015-12-1
7 19:22
+0100\n"
"Last-Translator: Valentin Samir <valentin.samir@crans.org>\n"
"Language-Team: django <LL@li.org>\n"
"Language: en\n"
...
...
@@ -17,6 +17,10 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.6\n"
#: apps.py:7 templates/cas_server/base.html:3
msgid "Central Authentication Service"
msgstr "Central Authentication Service"
#: forms.py:23
msgid "login"
msgstr "username"
...
...
@@ -45,101 +49,117 @@ msgstr "Clean deleted sessions"
msgid "Clean old trickets"
msgstr "Clean old trickets"
#: models.py:90
#: models.py:42
msgid "User"
msgstr ""
#: models.py:43
msgid "Users"
msgstr ""
#: models.py:101
#, python-format
msgid "Error during service logout %s"
msgstr "Error during service logout %s"
#: models.py:160
#: models.py:169
msgid "Service pattern"
msgstr "Service pattern"
#: models.py:170
msgid "Services patterns"
msgstr ""
#: models.py:174
msgid "position"
msgstr "position"
#: models.py:1
67 models.py:271
#: models.py:1
81 models.py:303
msgid "name"
msgstr "name"
#: models.py:1
68
#: models.py:1
82
msgid "A name for the service"
msgstr "A name for the service"
#: models.py:1
73 models.py:299 models.py:317
#: models.py:1
87 models.py:331 models.py:349
msgid "pattern"
msgstr "pattern"
#: models.py:1
75
#: models.py:1
89
msgid ""
"A regular expression matching services. Will usually looks like '^https://"
"some\\.server\\.com/path/.*$'.As it is a regular expression, special "
"character must be escaped with a '\\'."
msgstr ""
#: models.py:1
84
#: models.py:1
98
msgid "user field"
msgstr ""
#: models.py:1
85
#: models.py:1
99
msgid "Name of the attribut to transmit as username, empty = login"
msgstr "Name of the attribut to transmit as username, empty = login"
#: models.py:
189
#: models.py:
203
msgid "restrict username"
msgstr ""
#: models.py:
190
#: models.py:
204
msgid "Limit username allowed to connect to the list provided bellow"
msgstr "Limit username allowed to connect to the list provided bellow"
#: models.py:
194
#: models.py:
208
msgid "proxy"
msgstr "proxy"
#: models.py:
195
#: models.py:
209
msgid "Proxy tickets can be delivered to the service"
msgstr "Proxy tickets can be delivered to the service"
#: models.py:
199
#: models.py:
213
msgid "proxy callback"
msgstr "proxy callback"
#: models.py:2
00
#: models.py:2
14
msgid "can be used as a proxy callback to deliver PGT"
msgstr "can be used as a proxy callback to deliver PGT"
#: models.py:2
04
#: models.py:2
18
msgid "single log out"
msgstr ""
#: models.py:2
05
#: models.py:2
19
msgid "Enable SLO for the service"
msgstr "Enable SLO for the service"
#: models.py:2
12
#: models.py:2
26
msgid "single log out callback"
msgstr ""
#: models.py:2
13
#: models.py:2
27
msgid ""
"URL where the SLO request will be POST. empty = service url\n"
"This is usefull for non HTTP proxied services."
msgstr ""
#: models.py:2
56
#: models.py:2
88
msgid "username"
msgstr ""
#: models.py:2
57
#: models.py:2
89
msgid "username allowed to connect to the service"
msgstr "username allowed to connect to the service"
#: models.py:
272
#: models.py:
304
msgid "name of an attribut to send to the service, use * for all attributes"
msgstr "name of an attribut to send to the service, use * for all attributes"
#: models.py:
277 models.py:323
#: models.py:
309 models.py:355
msgid "replace"
msgstr "replace"
#: models.py:
278
#: models.py:
310
msgid ""
"name under which the attribut will be showto the service. empty = default "
"name of the attribut"
...
...
@@ -147,31 +167,31 @@ msgstr ""
"name under which the attribut will be showto the service. empty = default "
"name of the attribut"
#: models.py:
294 models.py:312
#: models.py:
326 models.py:344
msgid "attribut"
msgstr "attribut"
#: models.py:
295
#: models.py:
327
msgid "Name of the attribut which must verify pattern"
msgstr "Name of the attribut which must verify pattern"
#: models.py:3
00
#: models.py:3
32
msgid "a regular expression"
msgstr "a regular expression"
#: models.py:3
13
#: models.py:3
45
msgid "Name of the attribut for which the value must be replace"
msgstr "Name of the attribut for which the value must be replace"
#: models.py:3
18
#: models.py:3
50
msgid "An regular expression maching whats need to be replaced"
msgstr "An regular expression maching whats need to be replaced"
#: models.py:3
24
#: models.py:3
56
msgid "replace expression, groups are capture by \\1, \\2 …"
msgstr "replace expression, groups are capture by \\1, \\2 …"
#: models.py:4
16
#: models.py:4
63
#, python-format
msgid ""
"Error during service logout %(service)s:\n"
...
...
@@ -180,10 +200,6 @@ msgstr ""
"Error during service logout %(service)s:\n"
"%(error)s"
#: templates/cas_server/base.html:3
msgid "Central Authentication Service"
msgstr "Central Authentication Service"
#: templates/cas_server/logged.html:6
msgid "Logged"
msgstr ""
...
...
@@ -208,7 +224,7 @@ msgstr "Please loggin"
msgid "Login"
msgstr "Login"
#: templates/cas_server/logout.html:6 views.py:1
12
#: templates/cas_server/logout.html:6 views.py:1
23
msgid "Successfully logout"
msgstr ""
"<h3>Logout successful</h3>You have successfully logged out of the Central "
...
...
@@ -218,44 +234,44 @@ msgstr ""
msgid "Connect to the service"
msgstr "Connect to the service"
#: views.py:1
86
#: views.py:1
97
msgid "Invalid login ticket"
msgstr "Invalid login ticket, please retry to login"
#: views.py:2
77
#: views.py:2
92
#, python-format
msgid "Authentication has been required by service %(name)s (%(url)s)"
msgstr "Authentication has been required by service %(name)s (%(url)s)"
#: views.py:3
11
#: views.py:3
26
#, python-format
msgid "Service %(url)s non allowed."
msgstr "Service %(url)s non allowed."
#: views.py:3
18
#: views.py:3
33
msgid "Username non allowed"
msgstr "Username non allowed"
#: views.py:3
25
#: views.py:3
40
msgid "User charateristics non allowed"
msgstr "User charateristics non allowed"
#: views.py:3
32
#: views.py:3
47
#, python-format
msgid "The attribut %(field)s is needed to use that service"
msgstr "The attribut %(field)s is needed to use that service"
#: views.py:
39
7
#: views.py:
41
7
#, python-format
msgid "Authentication renewal required by service %(name)s (%(url)s)."
msgstr "Authentication renewal required by service %(name)s (%(url)s)."
#: views.py:4
0
4
#: views.py:4
2
4
#, python-format
msgid "Authentication required by service %(name)s (%(url)s)."
msgstr "Authentication required by service %(name)s (%(url)s)."
#: views.py:4
1
1
#: views.py:4
3
1
#, python-format
msgid "Service %s non allowed"
msgstr "Service %s non allowed"
cas_server/locale/fr/LC_MESSAGES/django.mo
View file @
85b74bab
No preview for this file type
cas_server/locale/fr/LC_MESSAGES/django.po
View file @
85b74bab
...
...
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: cas_server\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-12-1
2 18:18
+0100\n"
"PO-Revision-Date: 2015-12-1
2 18:20
+0100\n"
"POT-Creation-Date: 2015-12-1
7 19:21
+0100\n"
"PO-Revision-Date: 2015-12-1
7 19:22
+0100\n"
"Last-Translator: Valentin Samir <valentin.samir@crans.org>\n"
"Language-Team: django <LL@li.org>\n"
"Language: fr\n"
...
...
@@ -18,6 +18,10 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 1.8.6\n"
#: apps.py:7 templates/cas_server/base.html:3
msgid "Central Authentication Service"
msgstr "Service Central d'Authentification"
#: forms.py:23
msgid "login"
msgstr "Identifiant"
...
...
@@ -46,28 +50,44 @@ msgstr "Nettoyer les sessions supprimées"
msgid "Clean old trickets"
msgstr "Nettoyer les vieux tickets"
#: models.py:90
#: models.py:42
msgid "User"
msgstr "Utilisateur"
#: models.py:43
msgid "Users"
msgstr "Utilisateurs"
#: models.py:101
#, python-format
msgid "Error during service logout %s"
msgstr "Une erreur est survenue durant la déconnexion du service %s"
#: models.py:160
#: models.py:169
msgid "Service pattern"
msgstr "Motif de service"
#: models.py:170
msgid "Services patterns"
msgstr "Motifs de services"
#: models.py:174
msgid "position"
msgstr "position"
#: models.py:1
67 models.py:271
#: models.py:1
81 models.py:303
msgid "name"
msgstr "nom"
#: models.py:1
68
#: models.py:1
82
msgid "A name for the service"
msgstr "Un nom pour le service"
#: models.py:1
73 models.py:299 models.py:317
#: models.py:1
87 models.py:331 models.py:349
msgid "pattern"
msgstr "motif"
#: models.py:1
75
#: models.py:1
89
msgid ""
"A regular expression matching services. Will usually looks like '^https://"
"some\\.server\\.com/path/.*$'.As it is a regular expression, special "
...
...
@@ -78,55 +98,55 @@ msgstr ""
"expression rationnelle, les caractères spéciaux doivent être échappés avec "
"un '\\'."
#: models.py:1
84
#: models.py:1
98
msgid "user field"
msgstr "champ utilisateur"
#: models.py:1
85
#: models.py:1
99
msgid "Name of the attribut to transmit as username, empty = login"
msgstr ""
"Nom de l'attribut devant être transmis comme nom d'utilisateur au service. "
"vide = nom de connection"
#: models.py:
189
#: models.py:
203
msgid "restrict username"
msgstr "limiter les noms d'utilisateurs"
#: models.py:
190
#: models.py:
204
msgid "Limit username allowed to connect to the list provided bellow"
msgstr ""
"Limiter les noms d'utilisateurs autorisé à se connecter à la liste fournie "
"ci-dessous"
#: models.py:
194
#: models.py:
208
msgid "proxy"
msgstr "proxy"
#: models.py:
195
#: models.py:
209
msgid "Proxy tickets can be delivered to the service"
msgstr "des proxy tickets peuvent être délivrés au service"
#: models.py:
199
#: models.py:
213
msgid "proxy callback"
msgstr ""
#: models.py:2
00
#: models.py:2
14
msgid "can be used as a proxy callback to deliver PGT"
msgstr "peut être utilisé comme un callback pour recevoir un PGT"
#: models.py:2
04
#: models.py:2
18
msgid "single log out"
msgstr ""
#: models.py:2
05
#: models.py:2
19
msgid "Enable SLO for the service"
msgstr "Active le SLO pour le service"
#: models.py:2
12
#: models.py:2
26
msgid "single log out callback"
msgstr ""
#: models.py:2
13
#: models.py:2
27
msgid ""
"URL where the SLO request will be POST. empty = service url\n"
"This is usefull for non HTTP proxied services."
...
...
@@ -135,55 +155,55 @@ msgstr ""
"service\n"
"Ceci n'est utilise que pour des services non HTTP proxifiés"
#: models.py:2
56
#: models.py:2
88
msgid "username"
msgstr "nom d'utilisateur"
#: models.py:2
57
#: models.py:2
89
msgid "username allowed to connect to the service"
msgstr "noms d'utilisateurs autorisé à se connecter au service"
#: models.py:
272
#: models.py:
304
msgid "name of an attribut to send to the service, use * for all attributes"
msgstr ""
"nom d'un attribut a envoyer au service, utiliser * pour tous les attributs"
#: models.py:
277 models.py:323
#: models.py:
309 models.py:355
msgid "replace"
msgstr "remplacement"
#: models.py:
278
#: models.py:
310
msgid ""
"name under which the attribut will be showto the service. empty = default "
"name of the attribut"
msgstr ""
"nom sous lequel l'attribut sera rendu visible au service. vide = inchangé"
#: models.py:
294 models.py:312
#: models.py:
326 models.py:344
msgid "attribut"
msgstr "attribut"
#: models.py:
295
#: models.py:
327
msgid "Name of the attribut which must verify pattern"
msgstr "Nom de l'attribut devant vérifier un motif"
#: models.py:3
00
#: models.py:3
32
msgid "a regular expression"
msgstr "une expression régulière"
#: models.py:3
13
#: models.py:3
45
msgid "Name of the attribut for which the value must be replace"
msgstr "nom de l'attribue pour lequel la valeur doit être remplacé"
#: models.py:3
18
#: models.py:3
50
msgid "An regular expression maching whats need to be replaced"
msgstr "une expression régulière reconnaissant ce qui doit être remplacé"
#: models.py:3
24
#: models.py:3
56
msgid "replace expression, groups are capture by \\1, \\2 …"
msgstr "expression de remplacement, les groupe sont capturé par \\1, \\2"
#: models.py:4
16
#: models.py:4
63
#, python-format
msgid ""
"Error during service logout %(service)s:\n"
...
...
@@ -192,10 +212,6 @@ msgstr ""
"Une erreur est survenue durant la déconnexion du service %(service)s:"
"%(error)s"
#: templates/cas_server/base.html:3
msgid "Central Authentication Service"
msgstr "Service Central d'Authentification"
#: templates/cas_server/logged.html:6
msgid "Logged"
msgstr ""
...
...
@@ -220,7 +236,7 @@ msgstr "Merci de se connecter"
msgid "Login"
msgstr "Connexion"
#: templates/cas_server/logout.html:6 views.py:1
12
#: templates/cas_server/logout.html:6 views.py:1
23
msgid "Successfully logout"
msgstr ""
"<h3>Déconnexion réussie</h3>\n"
...
...
@@ -231,46 +247,46 @@ msgstr ""
msgid "Connect to the service"
msgstr "Se connecter au service"
#: views.py:1
86
#: views.py:1
97
msgid "Invalid login ticket"
msgstr "Ticket de connexion invalide, merci de réessayé de vous connecter"
#: views.py:2
77
#: views.py:2
92
#, python-format
msgid "Authentication has been required by service %(name)s (%(url)s)"
msgstr ""
"Une demande d'authentification a été émise pour le service %(name)s "
"(%(url)s)."
#: views.py:3
11
#: views.py:3
26
#, python-format
msgid "Service %(url)s non allowed."
msgstr "le service %(url)s n'est pas autorisé."
#: views.py:3
18
#: views.py:3
33
msgid "Username non allowed"
msgstr "Nom d'utilisateur non authorisé"
#: views.py:3
25
#: views.py:3
40
msgid "User charateristics non allowed"
msgstr "Caractéristique utilisateur non autorisée"
#: views.py:3
32
#: views.py:3
47
#, python-format
msgid "The attribut %(field)s is needed to use that service"
msgstr "L'attribut %(field)s est nécessaire pour se connecter à ce service"
#: views.py:
39
7
#: views.py:
41
7
#, python-format
msgid "Authentication renewal required by service %(name)s (%(url)s)."
msgstr "Demande de réauthentification pour le service %(name)s (%(url)s)."
#: views.py:4
0
4
#: views.py:4
2
4
#, python-format
msgid "Authentication required by service %(name)s (%(url)s)."
msgstr "Authentification requise par le service %(name)s (%(url)s)."
#: views.py:4
1
1
#: views.py:4
3
1
#, python-format
msgid "Service %s non allowed"
msgstr "Le service %s n'est pas autorisé"
...
...
cas_server/models.py
View file @
85b74bab
...
...
@@ -39,6 +39,8 @@ class User(models.Model):
"""A user logged into the CAS"""
class
Meta
:
unique_together
=
(
"username"
,
"session_key"
)
verbose_name
=
_
(
"User"
)
verbose_name_plural
=
_
(
"Users"
)
session_key
=
models
.
CharField
(
max_length
=
40
,
blank
=
True
,
null
=
True
)
username
=
models
.
CharField
(
max_length
=
30
)
date
=
models
.
DateTimeField
(
auto_now
=
True
)
...
...
@@ -164,6 +166,8 @@ class ServicePattern(models.Model):
"""Allowed services pattern agains services are tested to"""
class
Meta
:
ordering
=
(
"pos"
,
)
verbose_name
=
_
(
"Service pattern"
)
verbose_name_plural
=
_
(
"Services patterns"
)
pos
=
models
.
IntegerField
(
default
=
100
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment