debian: no mellon (saml) authentication for zoo
This commit is contained in:
parent
13b4700d7e
commit
43fb0e5dfd
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue