Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($username, $password) | |
authenticate (RequestInterface $request) | |
Authenticate a PSR-7 Request using Basic Auth.
Definition at line 13 of file BasicAuth.php.
Http\Message\Authentication\BasicAuth::__construct | ( | $username, | |
$password | |||
) |
string | $username | |
string | $password |
Definition at line 35 of file BasicAuth.php.
Http\Message\Authentication\BasicAuth::authenticate | ( | RequestInterface | $request | ) |
{Alter the request to add the authentication credentials.To do that, the implementation might use pre-stored credentials or do separate HTTP requests to obtain a valid token.
RequestInterface | $request | The request without authentication information |
Implements Http\Message\Authentication.
Definition at line 44 of file BasicAuth.php.
References Psr\Http\Message\MessageInterface\withHeader().