Gitlab CSE Unil

Commit 6bf410a2 authored by Julien Furrer's avatar Julien Furrer
Browse files

fixed config

parent b7fc9b91
......@@ -164,16 +164,6 @@ REST_FRAMEWORK = {
}
# ..... SHIBAUTH
LOCAL_APPS += ('shibauth', )
AUTHENTICATION_BACKENDS = ('shibauth.shibbolethbackends.ShibbolethBackend',) + AUTHENTICATION_BACKENDS
try:
from .components.shibbauth import *
except ImportError:
raise ImproperlyConfigured("Unable to import SHIBAUTH configurations")
# ..... CORS HEADERS (https://github.com/ottoyiu/django-cors-headers/)
LOCAL_APPS += ('corsheaders',)
MIDDLEWARE_CLASSES = list(MIDDLEWARE_CLASSES)
......@@ -252,6 +242,16 @@ ATTP = {
}
}
# ..... SHIBAUTH
LOCAL_APPS += ('shibauth', )
AUTHENTICATION_BACKENDS = ('shibauth.shibbolethbackends.ShibbolethBackend',) + AUTHENTICATION_BACKENDS
try:
from .components.shibbauth import *
except ImportError:
raise ImproperlyConfigured("Unable to import SHIBAUTH configurations")
# ---------- END LOCAL APPS CONFIGURATION
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment