2020-03-09 16:49:28 +01:00
|
|
|
# This file is sourced by "exec" from bijoe.settings
|
2016-06-20 16:39:33 +02:00
|
|
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
PROJECT_NAME = 'bijoe'
|
|
|
|
|
|
|
|
#
|
2016-07-25 13:13:41 +02:00
|
|
|
# SAML-isation
|
2016-06-20 16:39:33 +02:00
|
|
|
#
|
2016-07-25 13:13:41 +02:00
|
|
|
INSTALLED_APPS = INSTALLED_APPS + ('mellon',)
|
2016-07-22 17:36:03 +02:00
|
|
|
|
2020-03-09 16:49:28 +01:00
|
|
|
exec(open('/usr/lib/hobo/debian_config_common.py').read())
|
2016-06-20 16:39:33 +02:00
|
|
|
|
2016-07-15 16:30:20 +02:00
|
|
|
# SAML2 authentication
|
|
|
|
AUTHENTICATION_BACKENDS = ('mellon.backends.SAMLBackend',)
|
2021-08-09 15:31:51 +02:00
|
|
|
MELLON_ATTRIBUTE_MAPPING = {
|
2016-09-26 12:20:03 +02:00
|
|
|
'email': '{attributes[email][0]}',
|
|
|
|
'first_name': '{attributes[first_name][0]}',
|
|
|
|
'last_name': '{attributes[last_name][0]}',
|
|
|
|
}
|
|
|
|
|
2021-08-09 15:31:51 +02:00
|
|
|
MELLON_SUPERUSER_MAPPING = {
|
2016-09-26 12:20:03 +02:00
|
|
|
'is_superuser': 'true',
|
|
|
|
}
|
|
|
|
|
|
|
|
MELLON_USERNAME_TEMPLATE = '{attributes[name_id_content]}'
|
|
|
|
|
|
|
|
MELLON_IDENTITY_PROVIDERS = []
|
2016-07-15 16:30:20 +02:00
|
|
|
|
2016-07-25 13:13:41 +02:00
|
|
|
# Override default hobo agent
|
|
|
|
INSTALLED_APPS = ('bijoe.hobo_agent',) + INSTALLED_APPS
|
2021-08-07 20:45:04 +02:00
|
|
|
|
|
|
|
WCS_OLAP_COMMAND = '/usr/bin/wcs-olap'
|
|
|
|
|
|
|
|
|
2016-06-20 16:39:33 +02:00
|
|
|
#
|
|
|
|
# local settings
|
|
|
|
#
|
2020-03-09 16:49:28 +01:00
|
|
|
exec(open(os.path.join(ETC_DIR, 'settings.py')).read())
|
2018-01-09 11:35:57 +01:00
|
|
|
|
|
|
|
# run additional settings snippets
|
2020-03-09 16:49:28 +01:00
|
|
|
exec(open('/usr/lib/hobo/debian_config_settings_d.py').read())
|