|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
HTTP Basic authentication utility. More...
Inheritance diagram for Sabre\HTTP\Auth\Basic:
Collaboration diagram for Sabre\HTTP\Auth\Basic: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 | ( | ) |
This method returns a numeric array with a username and password as the only elements.
If no credentials were found, this method returns null.
Definition at line 28 of file Basic.php.
References $auth.
| Sabre\HTTP\Auth\Basic::requireLogin | ( | ) |
This method sends the needed HTTP header and statuscode (401) to force the user to login.
Reimplemented from Sabre\HTTP\Auth\AbstractAuth.
Definition at line 56 of file Basic.php.