diff options
author | Leif Johansson <leifj@sunet.se> | 2012-10-17 17:13:08 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-10-17 17:13:08 +0200 |
commit | 494eb09630db098813f35464fb5b679ef4015a1b (patch) | |
tree | 4c2dbc86108815f285f689abd4ffc930760d5b0b /meetingtools | |
parent | b95705bbeb3ed12519d3a3e14167ed836c2a9ba3 (diff) |
disable asgard settings.d
Diffstat (limited to 'meetingtools')
-rw-r--r-- | meetingtools/settings.py | 13 |
1 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 |