ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
HTTP Bearer authentication utility. More...
Public Member Functions | |
getToken () | |
This method returns a string with an access token. More... | |
requireLogin () | |
This method sends the needed HTTP header and statuscode (401) to force authentication. More... | |
Public Member Functions inherited from Sabre\HTTP\Auth\AbstractAuth | |
__construct ($realm='SabreTooth', RequestInterface $request, ResponseInterface $response) | |
Creates the object. More... | |
requireLogin () | |
This method sends the needed HTTP header and statuscode (401) to force the user to login. More... | |
getRealm () | |
Returns the HTTP realm. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Sabre\HTTP\Auth\AbstractAuth | |
$realm | |
$request | |
$response | |
HTTP Bearer authentication utility.
This class helps you setup bearer auth. The process is fairly simple:
Definition at line 18 of file Bearer.php.
Sabre\HTTP\Auth\Bearer::getToken | ( | ) |
This method returns a string with an access token.
If no token was found, this method returns null.
Definition at line 27 of file Bearer.php.
References $auth.
Sabre\HTTP\Auth\Bearer::requireLogin | ( | ) |
This method sends the needed HTTP header and statuscode (401) to force authentication.
Definition at line 49 of file Bearer.php.