public $ratelimitDir="/tmp/ratelimit/";

public $restMethods=array (http,jwt);

Methods

public function __construct ( $route)

The constructor
@param object $route The route object

public function createJwtToken ( $auth)

Return the JSON Web Token
@param string|array $auth The user data to store in JSON Web Token cache.
The $this->authServers["authjwt"]["algorithm"],
$this->authServers["authjwt"]["cipherKey"] and
$this->authServers["authjwt"]["serverKey"] can be set

public function debug ( $debug=null)

Setter/Getter for debug
@param integer|null $debug The debug value to get/set
@return the actual value or this

public function logout ( $url="")

Disconnect the user
@param string|null $url The url to be redirected after a valid
logout

public function pageHTML ( $url="")

Display the login page
@param string|null $url The url to be redirected after a valid
authentication

public function routes ()

Add the authentication routes to the routing model for HTML
authentication. Not needed if using shibboleth, HTTP auth...

public function verifAuthHTML ()

Check all the others pages of the site
@return array The details provided by the authentication mecanism

public function verifAuthLoginPage ( $url="")

Check the authentication page
@param string|null $url The url to be redirected after a valid
authentication

public function verifAuthREST ( $savePassword=false)

Check all the REST API
@param boolean|null $savePassword return the user password if the
authentication is valid
@return array The details provided by the authentication mecanism