Open Journal Systems  3.3.0
Http\Message\Authentication\RequestConditional Class Reference
Inheritance diagram for Http\Message\Authentication\RequestConditional:
Http\Message\Authentication

Public Member Functions

 __construct (RequestMatcher $requestMatcher, Authentication $authentication)
 
 authenticate (RequestInterface $request)
 

Detailed Description

Authenticate a PSR-7 Request if the request is matching the given request matcher.

Author
Márk Sági-Kazár mark..nosp@m.sagi.nosp@m.kazar.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Definition at line 14 of file RequestConditional.php.

Constructor & Destructor Documentation

◆ __construct()

Http\Message\Authentication\RequestConditional::__construct ( RequestMatcher  $requestMatcher,
Authentication  $authentication 
)
Parameters
RequestMatcher$requestMatcher
Authentication$authentication

Definition at line 36 of file RequestConditional.php.

Member Function Documentation

◆ authenticate()

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.

Parameters
RequestInterface$requestThe request without authentication information
Returns
RequestInterface The request with added authentication information
}

Implements Http\Message\Authentication.

Definition at line 45 of file RequestConditional.php.


The documentation for this class was generated from the following file: