From: Gunnar Wrobel Date: Wed, 4 Nov 2009 14:47:23 +0000 (+0100) Subject: Add a stub method for abstract _authenticate() throwing a "Not implemented" error... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=16b18fe40860eeccaf9326bea4030b52edaf9ce6;p=horde.git Add a stub method for abstract _authenticate() throwing a "Not implemented" error. Otherwise the classes are not useable. --- diff --git a/framework/Auth/lib/Horde/Auth/Cyrus.php b/framework/Auth/lib/Horde/Auth/Cyrus.php index e3b06d81e..ed203b222 100644 --- a/framework/Auth/lib/Horde/Auth/Cyrus.php +++ b/framework/Auth/lib/Horde/Auth/Cyrus.php @@ -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. * diff --git a/framework/Auth/lib/Horde/Auth/Ipbasic.php b/framework/Auth/lib/Horde/Auth/Ipbasic.php index e4e46a111..177b6e84c 100644 --- a/framework/Auth/lib/Horde/Auth/Ipbasic.php +++ b/framework/Auth/lib/Horde/Auth/Ipbasic.php @@ -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. diff --git a/framework/Auth/lib/Horde/Auth/Shibboleth.php b/framework/Auth/lib/Horde/Auth/Shibboleth.php index aadab9148..106494f16 100644 --- a/framework/Auth/lib/Horde/Auth/Shibboleth.php +++ b/framework/Auth/lib/Horde/Auth/Shibboleth.php @@ -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. *