summaryrefslogtreecommitdiffstats
path: root/testsettings.py
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2016-02-26 11:03:32 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2016-02-26 17:09:17 (GMT)
commit4f77ee0e245eb3bdd398c25fc4862a6ca3f6bbf6 (patch)
tree0b7028fd2cac702f4629c558d348cb92a2514c20 /testsettings.py
parentf2cf86f7a637173499316e212f408a91e8f50a43 (diff)
downloaddjango-mellon-4f77ee0e245eb3bdd398c25fc4862a6ca3f6bbf6.zip
django-mellon-4f77ee0e245eb3bdd398c25fc4862a6ca3f6bbf6.tar.gz
django-mellon-4f77ee0e245eb3bdd398c25fc4862a6ca3f6bbf6.tar.bz2
do not pass strings contening null characters to Lasso, return 400 or ignore (fixes #8939)
Diffstat (limited to 'testsettings.py')
-rw-r--r--testsettings.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsettings.py b/testsettings.py
index 5f40084..bef6499 100644
--- a/testsettings.py
+++ b/testsettings.py
@@ -12,6 +12,14 @@ DATABASES = {
}
DEBUG = True
SECRET_KEY='xx'
+STATIC_URL = '/static/'
INSTALLED_APPS = ('mellon', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions')
MIDDLEWARE_CLASSES = global_settings.MIDDLEWARE_CLASSES
+MIDDLEWARE_CLASSES += (
+ 'django.contrib.sessions.middleware.SessionMiddleware',
+ 'django.contrib.auth.middleware.AuthenticationMiddleware',
+)
+AUTHENTICATION_BACKENDS = (
+ 'mellon.backends.SAMLBackend',
+)
ROOT_URLCONF = 'mellon.urls'