diff --git a/app/templates/errors/SAML.html b/app/templates/errors/SAML.html new file mode 100644 index 0000000..07355d0 --- /dev/null +++ b/app/templates/errors/SAML.html @@ -0,0 +1,45 @@ +{% extends "base.html" %} +{% block title %}DNS Control Panel - SAML Authentication Error{% endblock %} + +{% block dashboard_stat %} + +
+

+ SAML + Error +

+ +
+{% endblock %} + +{% block content %} + +
+
+
+

SAML Authentication Error



+
+

+ Oops! Something went wrong +


+

+ Login failed.
+ Error(s) when processing SAML Response:
+

    + {% for error in errors %} +
  • {{ error }}
  • + {% endfor %} +
+ + You may return to the dashboard. +

+
+ +
+ +
+ +{% endblock %} diff --git a/app/views.py b/app/views.py index a2c4456..120e25a 100644 --- a/app/views.py +++ b/app/views.py @@ -239,7 +239,7 @@ def saml_authorized(): login_user(user, remember=False) return redirect(url_for('index')) else: - return error(401,"an error occourred processing SAML response") + return render_template('errors/SAML.html', errors=errors) @app.route('/login', methods=['GET', 'POST']) @login_manager.unauthorized_handler