|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct (RequestMatcher $requestMatcher, Authentication $authentication) | |
| authenticate (RequestInterface $request) | |
Authenticate a PSR-7 Request if the request is matching the given request matcher.
Definition at line 14 of file RequestConditional.php.
| Http\Message\Authentication\RequestConditional::__construct | ( | RequestMatcher | $requestMatcher, |
| Authentication | $authentication | ||
| ) |
| RequestMatcher | $requestMatcher | |
| Authentication | $authentication |
Definition at line 36 of file RequestConditional.php.
| Http\Message\Authentication\RequestConditional::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 45 of file RequestConditional.php.