From d7887701e9075844bcf2d34fa45df39a1ec83ee9 Mon Sep 17 00:00:00 2001
From: Thijs Kinkhorst <thijs@kinkhorst.com>
Date: Fri, 10 Sep 2021 15:46:14 +0000
Subject: [PATCH] Add saml:Extensions to metadata if defined in config

---
 modules/saml/lib/IdP/SAML2.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/saml/lib/IdP/SAML2.php b/modules/saml/lib/IdP/SAML2.php
index 111bf3d70..c1c6f507d 100644
--- a/modules/saml/lib/IdP/SAML2.php
+++ b/modules/saml/lib/IdP/SAML2.php
@@ -878,6 +878,11 @@ class SAML2
             }
         }
 
+        if ($config->hasValue('saml:Extensions')) {
+            $metadata['saml:Extensions'] = $config->getArray('saml:Extensions');
+        }
+
+
         if ($config->hasValue('UIInfo')) {
             $metadata['UIInfo'] = $config->getArray('UIInfo');
         }
-- 
GitLab