Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($shouldRremoveUserInfo=true) | |
authenticate (RequestInterface $request) | |
Authenticate a PSR-7 Request using Basic Auth based on credentials in the URI.
Definition at line 13 of file AutoBasicAuth.php.
Http\Message\Authentication\AutoBasicAuth::__construct | ( | $shouldRremoveUserInfo = true | ) |
bool | true | $shouldRremoveUserInfo |
Definition at line 28 of file AutoBasicAuth.php.
Http\Message\Authentication\AutoBasicAuth::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 36 of file AutoBasicAuth.php.
References Psr\Http\Message\RequestInterface\getUri(), Psr\Http\Message\MessageInterface\withHeader(), and Psr\Http\Message\RequestInterface\withUri().