ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
HTTP Basic authentication utility. More...
Public Member Functions | |
getCredentials () | |
This method returns a numeric array with a username and password as the only elements. More... | |
requireLogin () | |
This method sends the needed HTTP header and statuscode (401) to force the user to login. 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 Basic authentication utility.
This class helps you setup basic auth. The process is fairly simple:
Sabre\HTTP\Auth\Basic::getCredentials | ( | ) |
Sabre\HTTP\Auth\Basic::requireLogin | ( | ) |
This method sends the needed HTTP header and statuscode (401) to force the user to login.