diff options
-rw-r--r-- | meetingtools/settings.py | 13 | ||||
-rw-r--r-- | settings.d/10-apps.conf (renamed from asgard/settings.d/10-apps.conf) | 0 | ||||
-rw-r--r-- | settings.d/20-saml.conf (renamed from asgard/settings.d/20-saml.conf) | 0 |
3 files changed, 13 insertions, 0 deletions
diff --git a/meetingtools/settings.py b/meetingtools/settings.py index 7f49c42..866ea53 100644 --- a/meetingtools/settings.py +++ b/meetingtools/settings.py @@ -130,6 +130,7 @@ INSTALLED_APPS = ( 'django_co_connector', 'django_co_acls', 'tagging', + 'djangosaml2', 'meetingtools.extensions', 'meetingtools.apps.auth', 'meetingtools.apps.room', @@ -148,7 +149,19 @@ djcelery.setup_loader() NOREPLY = "no-reply@sunet.se" AUTH_PROFILE_MODULE = "userprofile.UserProfile" +from django.conf import settings +from saml2 import BINDING_HTTP_POST, BINDING_HTTP_REDIRECT + +LOGIN_URL = '/saml2/sp/login/' +LOGIN_REDIRECT_URL = "/rooms" + +AUTHENTICATION_BACKENDS += ('asgard.saml.Saml2Backend',) + +AUTO_REMOTE_SUPERUSERS = ['leifj@nordu.net'] + try: from asgard.loader import * + + except ImportError: pass
\ No newline at end of file diff --git a/asgard/settings.d/10-apps.conf b/settings.d/10-apps.conf index 18180d6..18180d6 100644 --- a/asgard/settings.d/10-apps.conf +++ b/settings.d/10-apps.conf diff --git a/asgard/settings.d/20-saml.conf b/settings.d/20-saml.conf index 4116768..4116768 100644 --- a/asgard/settings.d/20-saml.conf +++ b/settings.d/20-saml.conf |