Alternc
latest
Alternc logiel libre pour l'hébergement
|
Authentication API used by server to authenticate a user using a SHARED SECRET (ApiKey) More...
Public Member Functions | |
__construct ($service) | |
Constructor of the Shared Secret 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 = 1111801 |
const | ERR_INVALID_SECRET = 1111802 |
const | ERR_INVALID_LOGIN = 1111803 |
const | ERR_DISABLED_ACCOUNT = 1111804 |
const | ERR_INVALID_AUTH = 1111805 |
Private Attributes | |
$db | |
Authentication API used by server to authenticate a user using a SHARED SECRET (ApiKey)
Definition at line 7 of file Sharedsecret.php.
Alternc_Api_Auth_Sharedsecret::__construct | ( | $service | ) |
Constructor of the Shared Secret Api Auth.
$service | an Alternc_Api_Service object |
Implements Alternc_Api_Auth_Interface.
Definition at line 23 of file Sharedsecret.php.
References ERR_INVALID_ARGUMENT.
Alternc_Api_Auth_Sharedsecret::auth | ( | $options | ) |
Authenticate a user.
$options | options, depending on the auth scheme, including uid for setuid users here, login is the alternc username, and secret is a valid shared secret for this user. |
Implements Alternc_Api_Auth_Interface.
Definition at line 38 of file Sharedsecret.php.
References Alternc_Api_Token\tokenGenerate().
Alternc_Api_Auth_Sharedsecret::instructions | ( | ) |
instructions on how to use this Auth class
Implements Alternc_Api_Auth_Interface.
Definition at line 71 of file Sharedsecret.php.
|
private |
Definition at line 9 of file Sharedsecret.php.
const Alternc_Api_Auth_Sharedsecret::ERR_DISABLED_ACCOUNT = 1111804 |
Definition at line 14 of file Sharedsecret.php.
const Alternc_Api_Auth_Sharedsecret::ERR_INVALID_ARGUMENT = 1111801 |
Definition at line 11 of file Sharedsecret.php.
Referenced by __construct().
const Alternc_Api_Auth_Sharedsecret::ERR_INVALID_AUTH = 1111805 |
Definition at line 15 of file Sharedsecret.php.
const Alternc_Api_Auth_Sharedsecret::ERR_INVALID_LOGIN = 1111803 |
Definition at line 13 of file Sharedsecret.php.
const Alternc_Api_Auth_Sharedsecret::ERR_INVALID_SECRET = 1111802 |
Definition at line 12 of file Sharedsecret.php.