Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct (array $params) | |
authenticate (RequestInterface $request) | |
Authenticate a PSR-7 Request by adding parameters to its query.
Note: Although in some cases it can be useful, we do not recommend using query parameters for authentication. Credentials in the URL is generally unsafe as they are not encrypted, anyone can see them.
Definition at line 16 of file QueryParam.php.
Http\Message\Authentication\QueryParam::__construct | ( | array | $params | ) |
array | $params |
Definition at line 29 of file QueryParam.php.
Http\Message\Authentication\QueryParam::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 37 of file QueryParam.php.
References Psr\Http\Message\RequestInterface\getUri(), and Psr\Http\Message\RequestInterface\withUri().