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

Public Member Functions

 __construct (array $authenticationChain=[])
 
 authenticate (RequestInterface $request)
 

Detailed Description

Authenticate a PSR-7 Request with a multiple authentication methods.

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 13 of file Chain.php.

Constructor & Destructor Documentation

◆ __construct()

Http\Message\Authentication\Chain::__construct ( array  $authenticationChain = [])
Parameters
Authentication[]$authenticationChain

Definition at line 26 of file Chain.php.

Member Function Documentation

◆ authenticate()

Http\Message\Authentication\Chain::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 42 of file Chain.php.


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