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.
◆ __construct()
| Http\Message\Authentication\Matching::__construct |
( |
Authentication |
$authentication, |
|
|
callable |
$matcher = null |
|
) |
| |
◆ authenticate()
{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 | $request | The 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
-
- Returns
- self
Definition at line 72 of file Matching.php.
The documentation for this class was generated from the following file: