From 7351b90c74da712a7c6a636142de05cd9b3516e3 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Thu, 4 Oct 2012 20:20:36 +0200 Subject: more djangosaml2 --- asgard/settings.d/20-saml.conf | 4 +++- templates/djangosaml2/wayf.html | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 templates/djangosaml2/wayf.html diff --git a/asgard/settings.d/20-saml.conf b/asgard/settings.d/20-saml.conf index a7cd1ab..6a786fc 100644 --- a/asgard/settings.d/20-saml.conf +++ b/asgard/settings.d/20-saml.conf @@ -11,7 +11,9 @@ SAML_ATTRIBUTE_MAPPING = { 'display_name': ['displayName','cn'] } -LOGIN_URL = '/accounts/login' +#LOGIN_URL = '/accounts/login' +LOGIN_URL = '/saml2/sp/login/' +LOGIN_REDIRECT_URL = "/rooms" SESSION_EXPIRE_AT_BROWSER_CLOSE = True SAML_METADATA_FILE = "/var/run/swamid-idp-transitive.xml" SAML_CREATE_UNKNOWN_USER = True diff --git a/templates/djangosaml2/wayf.html b/templates/djangosaml2/wayf.html new file mode 100644 index 0000000..d905b37 --- /dev/null +++ b/templates/djangosaml2/wayf.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} +{% block headline %}Login{% endblock %} +{% block title %}Meeting Tools{% endblock %} +{% block content %} +

Authentication Required

+

Please select your Identity Provider from the following list:

+
+ + +
+{% endblock %} \ No newline at end of file -- cgit v1.1