From 99e5136082c417a0d08e86e976b7467099d8dfd5 Mon Sep 17 00:00:00 2001
From: Ere Maijala <ere.maijala@helsinki.fi>
Date: Mon, 9 Sep 2019 16:06:59 -0400
Subject: [PATCH] Add delegation support to ChoiceAuth.

---
 module/VuFind/src/VuFind/Auth/ChoiceAuth.php | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/module/VuFind/src/VuFind/Auth/ChoiceAuth.php b/module/VuFind/src/VuFind/Auth/ChoiceAuth.php
index f7aa7521e77..43b5ed01745 100644
--- a/module/VuFind/src/VuFind/Auth/ChoiceAuth.php
+++ b/module/VuFind/src/VuFind/Auth/ChoiceAuth.php
@@ -323,6 +323,20 @@ class ChoiceAuth extends AbstractBase
         return $this->proxyAuthMethod('updatePassword', func_get_args());
     }
 
+    /**
+     * Returns any authentication method this request should be delegated to.
+     *
+     * @param \Zend\Http\PhpEnvironment\Request $request Request object.
+     *
+     * @return string|bool
+     *
+     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
+     */
+    public function getDelegateAuthMethod(\Zend\Http\PhpEnvironment\Request $request)
+    {
+        return $this->proxyAuthMethod('getDelegateAuthMethod', func_get_args());
+    }
+
     /**
      * Proxy auth method; a helper function to be called like:
      *   return $this->proxyAuthMethod(METHOD, func_get_args());
-- 
GitLab