Client
in package
implements
MiddlewareInterface
Validates that access was performed by specified user or any user that can impersonate as this user.
Requires clientId argument to exist in the provided ServerRequestInterface. Returns HTTP 400 if no ID was provided, HTTP 403 if access is denied or HTTP 404 if there is no object with such ID.
Tags
Interfaces, Classes and Traits
- MiddlewareInterface
Table of Contents
- REQUEST_ATTR_CLIENT_ID = 'clientId'
- __construct() : mixed
- process() : ResponseInterface
Constants
REQUEST_ATTR_CLIENT_ID
public
mixed
REQUEST_ATTR_CLIENT_ID
= 'clientId'
Methods
__construct()
public
__construct(ResponseFactoryInterface $factory) : mixed
Parameters
- $factory : ResponseFactoryInterface
Return values
mixed —process()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface