summaryrefslogtreecommitdiff
path: root/asgard/settings.d/20-saml.conf
diff options
context:
space:
mode:
Diffstat (limited to 'asgard/settings.d/20-saml.conf')
-rw-r--r--asgard/settings.d/20-saml.conf11
1 files changed, 9 insertions, 2 deletions
diff --git a/asgard/settings.d/20-saml.conf b/asgard/settings.d/20-saml.conf
index 3dc3349..833c21f 100644
--- a/asgard/settings.d/20-saml.conf
+++ b/asgard/settings.d/20-saml.conf
@@ -7,6 +7,13 @@ AUTH_PROFILE_MODULE = 'userprofile.UserProfile'
#SAML_KEY = "/etc/ssl/private/ssl-cert-snakeoil.key"
#SAML_CERT = "/etc/ssl/certs/ssl-cert-snakeoil.pem"
+SAML_ATTRIBUTE_MAPPING = {
+ 'eduPersonPrincipalName': 'username',
+ 'mail': 'email',
+ 'givenName': 'first_name',
+ 'sn': 'last_name',
+}
+
LOGIN_URL = '/saml2/sp/login/'
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
@@ -28,13 +35,13 @@ def asgard_sp_config(request=None):
# url and binding to the assertion consumer service view
# do not change the binding osettingsr service name
'assertion_consumer_service': [
- ('https://coip.app.nordu.net/saml2/acs/',
+ ('https://coip.app.nordu.net/saml2/sp/acs/',
BINDING_HTTP_POST),
],
# url and binding to the single logout service view
# do not change the binding or service name
'single_logout_service': [
- ('https://coip.app.nordu.net/saml2/ls/',
+ ('https://coip.app.nordu.net/saml2/sp/ls/',
BINDING_HTTP_REDIRECT),
],
},