DemandSessionToken
in package
implements
MiddlewareInterface
DemandSessionToken middleware Checks if the current session token is in the Horde-Session-Token header.
Tags
Table of Contents
Interfaces
- MiddlewareInterface
Properties
- $responseFactory : ResponseFactoryInterface
- $session : Horde_Session
- $streamFactory : StreamFactoryInterface
Methods
- __construct() : mixed
- process() : ResponseInterface
- Checks for a valid session token Returns 403 response if token is invalid or not found
Properties
$responseFactory
protected
ResponseFactoryInterface
$responseFactory
$session
protected
Horde_Session
$session
$streamFactory
protected
StreamFactoryInterface
$streamFactory
Methods
__construct()
public
__construct(ResponseFactoryInterface $responseFactory, StreamFactoryInterface $streamFactory, Horde_Session $session) : mixed
Parameters
- $responseFactory : ResponseFactoryInterface
- $streamFactory : StreamFactoryInterface
- $session : Horde_Session
process()
Checks for a valid session token Returns 403 response if token is invalid or not found
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface