* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006,2007 Catalyst IT Ltd http://catalyst.net.nz
*
*/
defined('INTERNAL') || die();
/**
* Base authentication class
*/
abstract class Auth {
/**
* Given a username, password and institution, attempts to log the user
* in.
*
* This method should return one of three values:
*
*
* - AUTH_PASSED - the user has provided correct credentials
* - AUTH_FAILED - the user has provided incorrect credentials
* - AUTH_UNKNOWN - the authentication system does not know about
* this user.
*
*/
public static abstract function authenticate_user_account($username, $password, $institute);
/**
* Given a username, returns a hash of information about a user.
*
*/
public static abstract function get_user_info ($username);
public static function get_config_options () {
}
}
?>