From 28f9b0a65c7a927dc2748608ce052b50e5e3b50f Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst <thijs@kinkhorst.com> Date: Thu, 26 Aug 2021 19:09:38 +0000 Subject: [PATCH] Fix typo in config var NameIDPolicy so it was not reflected in metadata (cherry picked from commit ff6457dad6843ad9c67df28eb9ea62e7004569d2) --- modules/saml/lib/Auth/Source/SP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/saml/lib/Auth/Source/SP.php b/modules/saml/lib/Auth/Source/SP.php index 0cdee27b1..8e47e64e3 100644 --- a/modules/saml/lib/Auth/Source/SP.php +++ b/modules/saml/lib/Auth/Source/SP.php @@ -140,7 +140,7 @@ class SP extends \SimpleSAML\Auth\Source ]; // add NameIDPolicy - if ($this->metadata->hasValue('NameIDValue')) { + if ($this->metadata->hasValue('NameIDPolicy')) { $format = $this->metadata->getValue('NameIDPolicy'); if (is_array($format)) { $metadata['NameIDFormat'] = Configuration::loadFromArray($format)->getString( -- GitLab