From d69e836cea1ac9cc8855ac37f20cb0ee707a3fbe Mon Sep 17 00:00:00 2001
From: Jaime Perez Crespo <jaime.perez@uninett.no>
Date: Wed, 5 Aug 2015 16:05:39 +0200
Subject: [PATCH] Remove (more than 5 years) old backwards-compatible code for
 non-authsource based IdPs.

---
 lib/SimpleSAML/IdP.php | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/lib/SimpleSAML/IdP.php b/lib/SimpleSAML/IdP.php
index baaead6b0..5f012df72 100644
--- a/lib/SimpleSAML/IdP.php
+++ b/lib/SimpleSAML/IdP.php
@@ -367,11 +367,7 @@ class SimpleSAML_IdP
     {
         $sourceImpl = $this->authSource->getAuthSource();
         if ($sourceImpl === null) {
-            // backwards-compatibility with non-authsource IdP
-            foreach ($this->authSource->getAuthDataArray() as $k => $v) {
-                $state[$k] = $v;
-            }
-            return;
+            throw new SimpleSAML_Error_Exception('No such auth source defined.');
         }
 
         $sourceImpl->reauthenticate($state);
-- 
GitLab