diff options
author | Leif Johansson <leifj@sunet.se> | 2012-10-04 20:20:36 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-10-04 20:20:36 +0200 |
commit | 7351b90c74da712a7c6a636142de05cd9b3516e3 (patch) | |
tree | 3ff0fe26aa2bee51b155e211afe7edeeda9cfd6c | |
parent | 2a2ba3e4b819d50711accb07ce4877fa65542796 (diff) |
more djangosaml2
-rw-r--r-- | asgard/settings.d/20-saml.conf | 4 | ||||
-rw-r--r-- | templates/djangosaml2/wayf.html | 15 |
2 files changed, 18 insertions, 1 deletions
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 %} + <h1>Authentication Required</h1> + <p>Please select your <strong>Identity Provider</strong> from the following list:</p> + <form action="{% url djangosaml2.views.login %}" method="GET"> + <select id="idp" name="idp"> + {% for url, idp in available_idps %} + <option value="{{url}}">{{idp.0}}</option> + {% endfor %} + </select> + <input type="submit" value="Select"/> + </form> +{% endblock %}
\ No newline at end of file |