Add a stub method for abstract _authenticate() throwing a "Not implemented" error...
authorGunnar Wrobel <p@rdus.de>
Wed, 4 Nov 2009 14:47:23 +0000 (15:47 +0100)
committerGunnar Wrobel <p@rdus.de>
Wed, 4 Nov 2009 14:47:23 +0000 (15:47 +0100)
framework/Auth/lib/Horde/Auth/Cyrus.php
framework/Auth/lib/Horde/Auth/Ipbasic.php
framework/Auth/lib/Horde/Auth/Shibboleth.php

index e3b06d8..ed203b2 100644 (file)
@@ -277,6 +277,23 @@ class Horde_Auth_Cyrus extends Horde_Auth_Base
     }
 
     /**
+     * Authentication stub.
+     *
+     * On failure, Horde_Auth_Exception should pass a message string (if any)
+     * in the message field, and the Horde_Auth::REASON_* constant in the code
+     * field (defaults to Horde_Auth::REASON_MESSAGE).
+     *
+     * @param string $userID      The userID to check.
+     * @param array $credentials  An array of login credentials.
+     *
+     * @throws Horde_Auth_Exception
+     */
+    protected function _authenticate($userId, $credentials)
+    {
+        throw new Horde_Auth_Exception('Not implemented!');
+    }
+
+    /**
      * Automatic authentication: Find out if the client matches an allowed IP
      * block.
      *
index e4e46a1..177b6e8 100644 (file)
@@ -70,6 +70,23 @@ class Horde_Auth_Ipbasic extends Horde_Auth_Base
     }
 
     /**
+     * Authentication stub.
+     *
+     * On failure, Horde_Auth_Exception should pass a message string (if any)
+     * in the message field, and the Horde_Auth::REASON_* constant in the code
+     * field (defaults to Horde_Auth::REASON_MESSAGE).
+     *
+     * @param string $userID      The userID to check.
+     * @param array $credentials  An array of login credentials.
+     *
+     * @throws Horde_Auth_Exception
+     */
+    protected function _authenticate($userId, $credentials)
+    {
+        throw new Horde_Auth_Exception('Not implemented!');
+    }
+
+    /**
      * Determine if an IP address is within a CIDR block.
      *
      * @param string $address  The IP address to check.
index aadab91..106494f 100644 (file)
@@ -59,6 +59,23 @@ class Horde_Auth_Shibboleth extends Horde_Auth_Base
     }
 
     /**
+     * Authentication stub.
+     *
+     * On failure, Horde_Auth_Exception should pass a message string (if any)
+     * in the message field, and the Horde_Auth::REASON_* constant in the code
+     * field (defaults to Horde_Auth::REASON_MESSAGE).
+     *
+     * @param string $userID      The userID to check.
+     * @param array $credentials  An array of login credentials.
+     *
+     * @throws Horde_Auth_Exception
+     */
+    protected function _authenticate($userId, $credentials)
+    {
+        throw new Horde_Auth_Exception('Not implemented!');
+    }
+
+    /**
      * Automatic authentication: Check if the username is set in the
      * configured header.
      *