Documentation

DemandSessionToken
in package
implements MiddlewareInterface

DemandSessionToken middleware Checks if the current session token is in the Horde-Session-Token header.

Tags
author

Mahdi Pasche pasche@b1-systems.de

category

Horde

copyright

2013-2021 Horde LLC

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

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

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
Return values
ResponseInterface

        
On this page

Search results