From 1698caba4f4691372e0157854b38e509568db499 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Fri, 8 Dec 2017 12:29:22 +0100
Subject: [PATCH] authorize: move to Twig-template

---
 modules/authorize/templates/authorize_403.twig | 11 +++++++++++
 modules/authorize/www/authorize_403.php        |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)
 create mode 100644 modules/authorize/templates/authorize_403.twig

diff --git a/modules/authorize/templates/authorize_403.twig b/modules/authorize/templates/authorize_403.twig
new file mode 100644
index 000000000..1a60813dc
--- /dev/null
+++ b/modules/authorize/templates/authorize_403.twig
@@ -0,0 +1,11 @@
+{% extends "base.twig" %}
+
+{% block content %}
+  <h1>{{ '{authorize:Authorize:403_header}'|trans }}</h1>
+  <p>{{ '{authorize:Authorize:403_text}'|trans }}</p>
+  {% if LogoutURL is defined %}
+  <p>
+      <a href="{{ LogoutURL|escape('html') }}">{{ '{status:logout}'|trans }}</a>
+  </p>
+  {% endif %}
+{% endblock%}
diff --git a/modules/authorize/www/authorize_403.php b/modules/authorize/www/authorize_403.php
index f3f99b25f..e6a609486 100644
--- a/modules/authorize/www/authorize_403.php
+++ b/modules/authorize/www/authorize_403.php
@@ -6,7 +6,7 @@
  */
 
 if (!array_key_exists('StateId', $_REQUEST)) {
-	throw new SimpleSAML_Error_BadRequest('Missing required StateId query parameter.');
+    throw new SimpleSAML_Error_BadRequest('Missing required StateId query parameter.');
 }
 $state = SimpleSAML_Auth_State::loadState($_REQUEST['StateId'], 'authorize:Authorize');
 
-- 
GitLab