summaryrefslogtreecommitdiff
path: root/src/asgard/settings.d/20-saml.conf
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-10-04 15:09:52 +0200
committerLeif Johansson <leifj@sunet.se>2012-10-04 15:09:52 +0200
commit0245d412ce8f3a31b384b4cecd7e20f44e737338 (patch)
treecf3a84b4409b4e828a207c7231774ba44bf12120 /src/asgard/settings.d/20-saml.conf
parentec839d583fff6b279c7cdec2fdf87762f81f9aa5 (diff)
asgard
Diffstat (limited to 'src/asgard/settings.d/20-saml.conf')
-rw-r--r--src/asgard/settings.d/20-saml.conf22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/asgard/settings.d/20-saml.conf b/src/asgard/settings.d/20-saml.conf
new file mode 100644
index 0000000..e623bb5
--- /dev/null
+++ b/src/asgard/settings.d/20-saml.conf
@@ -0,0 +1,22 @@
+
+from django.conf import settings
+from saml2 import BINDING_HTTP_POST, BINDING_HTTP_REDIRECT
+
+AUTH_PROFILE_MODULE = 'profile.UserProfile'
+
+SAML_ATTRIBUTE_MAPPING = {
+ 'username': ['eduPersonPrincipalName'],
+ 'first_name': ['givenName'],
+ 'last_name': ['sn'],
+ 'display_name': ['displayName','cn']
+}
+
+LOGIN_URL = '/auth/login/'
+SESSION_EXPIRE_AT_BROWSER_CLOSE = True
+SAML_METADATA_FILE = "/var/run/swamid-idp-transitive.xml"
+SAML_CREATE_UNKNOWN_USER = True
+SAML_CONFIG_LOADER = "meetingtools.apps.auth.asgard_sp_config"
+
+#AUTHENTICATION_BACKENDS += ['keybucket.utils.saml.TargetedUsernameSamlBackend']
+
+AUTO_REMOTE_SUPERUSERS = ['leifj@nordu.net'] \ No newline at end of file