Documentation

Authentication

Add authentication information to a PSR-7 Request.

Tags
author

Márk Sági-Kazár mark.sagikazar@gmail.com

Table of Contents

Methods

authenticate()  : RequestInterface
Alter the request to add the authentication credentials.

Methods

authenticate()

Alter the request to add the authentication credentials.

public authenticate(RequestInterface $request) : RequestInterface

To do that, the implementation might use pre-stored credentials or do separate HTTP requests to obtain a valid token.

Parameters
$request : RequestInterface

The request without authentication information

Return values
RequestInterface

The request with added authentication information


        
On this page

Search results