More saml/mellon declarations to pdc.
This commit is contained in:
parent
3a879f6cde
commit
e8d256e3bb
1 changed files with 18 additions and 2 deletions
|
@ -37,9 +37,26 @@ REST_FRAMEWORK = {
|
||||||
# Because we don't want to kerberos, we want to ipsilon
|
# Because we don't want to kerberos, we want to ipsilon
|
||||||
LOGIN_URL = '/auth/saml2login'
|
LOGIN_URL = '/auth/saml2login'
|
||||||
AUTHENTICATION_BACKENDS = (
|
AUTHENTICATION_BACKENDS = (
|
||||||
'pdc.apps.auth.backends.AuthMellonUserBackend',
|
'pdc.apps.auth.backends.AuthMellonUserBackend', # XXX - <- no kerb
|
||||||
'django.contrib.auth.backends.ModelBackend',
|
'django.contrib.auth.backends.ModelBackend',
|
||||||
)
|
)
|
||||||
|
MIDDLEWARE_CLASSES = (
|
||||||
|
'corsheaders.middleware.CorsMiddleware',
|
||||||
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
|
'django.middleware.common.CommonMiddleware',
|
||||||
|
'django.middleware.csrf.CsrfViewMiddleware',
|
||||||
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||||
|
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
|
||||||
|
'pdc.apps.auth.middleware.RemoteUserMiddleware', # XXX - <- no kerb
|
||||||
|
'django.contrib.messages.middleware.MessageMiddleware',
|
||||||
|
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||||
|
'django.middleware.security.SecurityMiddleware',
|
||||||
|
'kobo.django.menu.middleware.MenuMiddleware',
|
||||||
|
'pdc.apps.usage.middleware.UsageMiddleware',
|
||||||
|
'pdc.apps.changeset.middleware.ChangesetMiddleware',
|
||||||
|
'pdc.apps.utils.middleware.MessagingMiddleware',
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
import os.path
|
import os.path
|
||||||
|
|
||||||
|
@ -104,4 +121,3 @@ EMAIL_SUBJECT_PREFIX = '[PDC]'
|
||||||
# 'handlers': ['mail_admins'],
|
# 'handlers': ['mail_admins'],
|
||||||
# 'level': 'ERROR',
|
# 'level': 'ERROR',
|
||||||
#}})
|
#}})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue