debian: no mellon (saml) authentication for zoo

This commit is contained in:
Thomas NOËL 2020-03-20 21:43:09 +01:00
parent 13b4700d7e
commit 43fb0e5dfd
2 changed files with 0 additions and 24 deletions

1
debian/control vendored
View File

@ -19,7 +19,6 @@ Depends: ${misc:Depends}, ${python:Depends}, adduser,
python-django-tenant-schemas,
python-psycopg2,
python-memcache,
python-django-mellon,
python-cached-property,
python-django-admin-rangefilter,
uwsgi,

View File

@ -4,29 +4,6 @@ import os
PROJECT_NAME = 'zoo'
# SAML2 authentication
INSTALLED_APPS += ('mellon',)
AUTHENTICATION_BACKENDS = (
'mellon.backends.SAMLBackend',
'django.contrib.auth.backends.ModelBackend',
)
LOGIN_URL = '/login/'
LOGIN_REDIRECT_URL = '/'
LOGOUT_URL = '/logout/'
MELLON_ATTRIBUTE_MAPPING = {
'email': '{attributes[email][0]}',
'first_name': '{attributes[first_name][0]}',
'last_name': '{attributes[last_name][0]}',
}
MELLON_SUPERUSER_MAPPING = {
'is_superuser': 'true',
}
MELLON_USERNAME_TEMPLATE = '{attributes[name_id_content]}'
MELLON_IDENTITY_PROVIDERS = []
#
# hobotization (multitenant)
#