Alternc
latest
Alternc logiel libre pour l'hébergement
|
Authentication API used by server to authenticate a user using his alternc login and password. More...
Public Member Functions | |
__construct ($service) | |
Constructor of the Login Api Auth. More... | |
auth ($options) | |
Authenticate a user. More... | |
instructions () | |
instructions on how to use this Auth class More... | |
Public Attributes | |
const | ERR_INVALID_ARGUMENT = 1111201 |
Private Attributes | |
$db | |
Authentication API used by server to authenticate a user using his alternc login and password.
Alternc_Api_Auth_Login::__construct | ( | $service | ) |
Constructor of the Login Api Auth.
$service | an Alternc_Api_Service object |
Implements Alternc_Api_Auth_Interface.
Definition at line 19 of file Login.php.
References ERR_INVALID_ARGUMENT.
Alternc_Api_Auth_Login::auth | ( | $options | ) |
Authenticate a user.
$options | options, depending on the auth scheme, including uid for setuid users here, login is the AlternC username, and password is the password for this username. |
Implements Alternc_Api_Auth_Interface.
Definition at line 34 of file Login.php.
References $db, and Alternc_Api_Token\tokenGenerate().
Alternc_Api_Auth_Login::instructions | ( | ) |
instructions on how to use this Auth class
Implements Alternc_Api_Auth_Interface.
const Alternc_Api_Auth_Login::ERR_INVALID_ARGUMENT = 1111201 |
Definition at line 11 of file Login.php.
Referenced by __construct().