DemandAuthenticatedUser
in package
implements
MiddlewareInterface
DemandAuthenticatedUser middleware Returns 401 response if not authenticated
Reads attribute:
- HORDE_AUTHENTICATED_USER the uid, if authenticated
Tags
Table of Contents
Interfaces
- MiddlewareInterface
Properties
- $responseFactory : ResponseFactoryInterface
Methods
- __construct() : mixed
- process() : ResponseInterface
Properties
$responseFactory
private
ResponseFactoryInterface
$responseFactory
Methods
__construct()
public
__construct(ResponseFactoryInterface $responseFactory) : mixed
Parameters
- $responseFactory : ResponseFactoryInterface
process()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface