MandayeJS
=========
Apache Configuration
--------------------
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
ServerName dev.entrouvert.org.127.0.0.1.xip.io
DocumentRoot /var/www/
SSLEngine On
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
CustomLog /var/log/apache2/mandayejs-access.log combined
ErrorLog /var/log/apache2/mandayejs-error.log
SSLProxyEngine on
ProxyPreserveHost On
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
ProxyPass /_mandaye/ http://localhost:8000/_mandaye/
ProxyPassReverse /_mandaye/ http://localhost:8000/_mandaye/
RequestHeader unset Accept-Encoding
ProxyPass /_mandaye !
ProxyPass / https://dev.entrouvert.org/
ProxyPassReverse / https://dev.entrouvert.org/
ExtFilterDefine fixtext mode=output intype=text/html \
cmd="/bin/sed -e '\$a<script type=\"text/javascript\" src=\"/_mandaye/static/mandaye.js\"></script>'"
<Location />
SetOutputFilter fixtext
</Location>
<Location /_mandaye>
SetOutputFilter None
</Location>
</VirtualHost>
Example of local_settings.py
----------------------------
SITE_DOMAIN = 'example.com'
SITE_LOGIN_PATH = '/'
SITE_CA_URL = 'https://myidp/account/' # Citizen account
SITE_LOCATORS = [
{
'id': '#username',
'label': 'Username',
'name': 'username',
'kind': 'string',
'required': True,
'help': '',
},
{
'id': '#birth_date',
'label': 'Birth date',
'name': 'birth_date',
'kind': 'date',
'required': True,
'help': 'exemple 16/06/2008'
},
{
'id': '#password',
'label': 'Password',
'name': 'password',
'kind': 'password',
'required': True,
'help': ''
},
]
#
SITE_STATIC_ROOT = 'example/mediatheque/'
# List of javascript scripts running on every pages
# loaded in panel.html
SITE_SCRIPTS = [
'js/example.com.js',
]
# JS Script asserting authentication through phantomjs
# The authentication assertion function must be into
# a var such as :
#
# window.auth_success = function(){
# // your code
# }
#
SITE_AUTH_CHECKER = 'js/example.auth.checker.js'
# JS/CSS for the association page (/_mandaye/associate)
SITE_ASSOCIATE_STATIC = {
'css': 'css/example_associate.css',
'js': 'js/example_associate.js',
}
# DOM Element used to validate the logon form
# If not provided, default is 'input[type=submit], button'
SITE_FORM_SUBMIT_ELEMENT = 'button[type=submit]'
# Mellon Settings
MELLON_IDENTITY_PROVIDERS = [
{
'METADATA_URL': 'https://authentic.example.dev.entrouvert.org/idp/saml2/metadata'
}
]
MELLON_VERIFY_SSL_CERTIFICATE = False