Open Journal Systems  3.3.0
Http\Message\Authentication Interface Reference
Inheritance diagram for Http\Message\Authentication:
Http\Message\Authentication\AutoBasicAuth Http\Message\Authentication\BasicAuth Http\Message\Authentication\Bearer Http\Message\Authentication\Chain Http\Message\Authentication\Matching Http\Message\Authentication\QueryParam Http\Message\Authentication\RequestConditional Http\Message\Authentication\Wsse

Public Member Functions

 authenticate (RequestInterface $request)
 

Detailed Description

Add authentication information to a PSR-7 Request.

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 12 of file Authentication.php.

Member Function Documentation

◆ authenticate()

Http\Message\Authentication::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

Implemented in Http\Message\Authentication\Matching, Http\Message\Authentication\RequestConditional, Http\Message\Authentication\BasicAuth, Http\Message\Authentication\Wsse, Http\Message\Authentication\Chain, Http\Message\Authentication\QueryParam, Http\Message\Authentication\AutoBasicAuth, and Http\Message\Authentication\Bearer.


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