Révision 2ecf06ef
Ajouté par Josué Kouka il y a plus de 8 ans
debian/control | ||
---|---|---|
24 | 24 |
python-django-tenant-schemas, |
25 | 25 |
python-psycopg2, |
26 | 26 |
python-django-mellon, |
27 |
uwsgi, |
|
28 | 27 |
phantomjs |
29 | 28 |
Recommends: nginx, postgresql |
30 | 29 |
Description: Authentication Reverse Proxy |
debian/settings.py | ||
---|---|---|
53 | 53 |
# HTTPS Security |
54 | 54 |
# CSRF_COOKIE_SECURE = True |
55 | 55 |
# SESSION_COOKIE_SECURE = True |
56 |
|
|
57 |
# Site Config |
|
58 |
SITE_DOMAIN = 'example.com' |
|
59 |
SITE_LOGIN_PATH = '/login' |
|
60 |
SITE_HOME_PATH = '/home' # Not required |
|
61 |
SITE_CA_URL = '' # Citizen Account URL |
|
62 |
|
|
63 |
SITE_LOCATORS = [ |
|
64 |
{ |
|
65 |
'id': '', |
|
66 |
'label': '', |
|
67 |
'name': '', |
|
68 |
'kind': 'string', |
|
69 |
'required': True, |
|
70 |
'help': '', |
|
71 |
}, |
|
72 |
{ |
|
73 |
'id': '', |
|
74 |
'label': '', |
|
75 |
'name': '', |
|
76 |
'kind': 'date', |
|
77 |
'required': True, |
|
78 |
'help': 'exemple 16/06/2008' |
|
79 |
}, |
|
80 |
{ |
|
81 |
'id': '', |
|
82 |
'label': '', |
|
83 |
'name': '', |
|
84 |
'kind': 'password', |
|
85 |
'required': True, |
|
86 |
'help': '' |
|
87 |
}, |
|
88 |
] |
|
89 |
|
|
90 |
# list of js scripts runing on every pages |
|
91 |
SITE_SCRIPTS = [ |
|
92 |
'js/example.js', |
|
93 |
] |
|
94 |
|
|
95 |
# js/css script for the association page |
|
96 |
SITE_ASSOCIATE_STATIC = { |
|
97 |
'js': 'js/example_associate.js', |
|
98 |
'css': 'css/example_associate.css' |
|
99 |
} |
|
100 |
|
|
101 |
# Mellon Settings |
|
102 |
MELLON_IDENTITY_PROVIDERS = [ |
|
103 |
{ |
|
104 |
'METADATA_URL': 'https://authentic.example.com.entrouvert.org/idp/saml2/metadata' |
|
105 |
} |
|
106 |
] |
|
107 |
|
|
108 |
MELLON_VERIFY_SSL_CERTIFICATE = False |
mandayejs/urls.py | ||
---|---|---|
20 | 20 |
|
21 | 21 |
urlpatterns = patterns('', |
22 | 22 |
url(r'^_mandaye/panel$', 'mandayejs.mandaye.views.panel', name='panel'), |
23 |
#url(r'^_mandaye/login/$', 'mandayejs.mandaye.views.login', name='auth_login'), |
|
24 |
#url(r'^_mandaye/logout/$', 'mandayejs.mandaye.views.logout', name='auth_logout'), |
|
25 | 23 |
url(r'^_mandaye/associate/$', 'mandayejs.mandaye.views.associate', name='associate'), |
26 | 24 |
url(r'^_mandaye/dissociate/$', 'mandayejs.mandaye.views.dissociate', name='dissociate'), |
27 | 25 |
url(r'^_mandaye/post-login/$', 'mandayejs.mandaye.views.post_login', name='post-login'), |
Formats disponibles : Unified diff
updating debian package