From e0ec9593a22f9d462b4fb8cc08a236184970e692 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Thu, 5 Apr 2012 15:41:13 +0200 Subject: local wayf --- asgard/settings.d/20-saml.conf | 11 +++++++++-- templates/djangosaml2/wayf.html | 16 ++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 templates/djangosaml2/wayf.html 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), ], }, diff --git a/templates/djangosaml2/wayf.html b/templates/djangosaml2/wayf.html new file mode 100644 index 0000000..60b07f0 --- /dev/null +++ b/templates/djangosaml2/wayf.html @@ -0,0 +1,16 @@ + + + + + + +

Login!

+

Please select your Identity Provider from the following list:

+ + + -- cgit v1.1