. * * @author David Maus * @copyright (c) 2015 by Herzog August Bibliothek Wolfenbüttel * @license http://www.gnu.org/licenses/gpl.txt GNU General Public License v3 or higher */ namespace HAB\Pica\Auth; /** * Interface of authentication service modules. * * @author David Maus * @copyright (c) 2015 by Herzog August Bibliothek Wolfenbüttel * @license http://www.gnu.org/licenses/gpl.txt GNU General Public License v3 or higher */ interface AuthenticationInterface { /** * Authenticate user. * * Returns an array with user attributes or false on * authentication failure. * * @throws RuntimeException * * @param string $username * @param string $password * @return array|false */ public function authenticate ($username, $password); }