diff options
-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 |