Alternc  latest
Alternc logiel libre pour l'hébergement
Interface.php
Go to the documentation of this file.
1 <?php
2 
3 /**
4  * Authentication API used by server to authenticate a user using a
5  * specific method.
6  */
8 
9  /**
10  * contructor :
11  * $service is an Alternc_Api_Service object having a getDb() method
12  */
13  function __construct($service);
14 
15  /**
16  * auth takes options specific to the auth itself
17  * returns an Alternc_Api_Token object
18  */
19  function auth($options);
20 
21  /**
22  * instructions on how to use this Auth class
23  * @return array("fields" => array("fields to send, required or not"), "description" => "description of this auth")
24  */
25  function instructions();
26 }
Authentication API used by server to authenticate a user using a specific method.
Definition: Interface.php:7
instructions()
instructions on how to use this Auth class
auth($options)
auth takes options specific to the auth itself returns an Alternc_Api_Token object
__construct($service)
contructor : $service is an Alternc_Api_Service object having a getDb() method