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

Public Member Functions

 __construct (Authentication $authentication, callable $matcher=null)
 
 authenticate (RequestInterface $request)
 

Static Public Member Functions

static createUrlMatcher (Authentication $authentication, $url)
 

Detailed Description

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

Author
Márk Sági-Kazár mark..nosp@m.sagi.nosp@m.kazar.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Deprecated:
since since version 1.2, and will be removed in 2.0. Use RequestConditional instead.

Definition at line 18 of file Matching.php.

Constructor & Destructor Documentation

◆ __construct()

Http\Message\Authentication\Matching::__construct ( Authentication  $authentication,
callable  $matcher = null 
)
Parameters
Authentication$authentication
callable | null$matcher

Definition at line 40 of file Matching.php.

Member Function Documentation

◆ authenticate()

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

◆ createUrlMatcher()

static Http\Message\Authentication\Matching::createUrlMatcher ( Authentication  $authentication,
  $url 
)
static

Creates a matching authentication for an URL.

Parameters
Authentication$authentication
string$url
Returns
self

Definition at line 72 of file Matching.php.


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