From 8f1d87883f0af7edc76e567364c0f17500495472 Mon Sep 17 00:00:00 2001
From: voserwin <voserwin@gmail.com>
Date: Thu, 4 Mar 2021 09:54:20 +0100
Subject: [PATCH] Update SP.php (#1433)

---
 docs/simplesamlphp-changelog.md     | 1 +
 modules/saml/lib/Auth/Source/SP.php | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/docs/simplesamlphp-changelog.md b/docs/simplesamlphp-changelog.md
index 63a41a700..aa7908479 100644
--- a/docs/simplesamlphp-changelog.md
+++ b/docs/simplesamlphp-changelog.md
@@ -13,6 +13,7 @@ Released TBD
   * Fixed a bug in the Artifact Resolution Service (#1428)
   * Fixed compatibility with Composer pre 1.8.5 (Debian 10) (#1427)
   * Updated npm dependencies up to February 1, 2021
+  * Fixed a bug where it was impossible to set WantAssertionsSigned=true on SP-metadata (#1433)
 
 ### memcacheMonitor
   * Fix a bug in the Twig-template that causes an exception on newer Twig-versions
diff --git a/modules/saml/lib/Auth/Source/SP.php b/modules/saml/lib/Auth/Source/SP.php
index 1dcc2425a..106be2631 100644
--- a/modules/saml/lib/Auth/Source/SP.php
+++ b/modules/saml/lib/Auth/Source/SP.php
@@ -267,7 +267,7 @@ class SP extends \SimpleSAML\Auth\Source
         }
 
         // add signature options
-        if ($this->metadata->hasValue('WantAssertiosnsSigned')) {
+        if ($this->metadata->hasValue('WantAssertionsSigned')) {
             $metadata['saml20.sign.assertion'] = $this->metadata->getBoolean('WantAssertionsSigned');
         }
         if ($this->metadata->hasValue('redirect.sign')) {
-- 
GitLab