RequestTokenMiddleware implements MiddlewareInterface, LoggerAwareInterface uses LoggerAwareTrait

Internal

Table of Contents

Interfaces

MiddlewareInterface
LoggerAwareInterface

Constants

ALLOWED_METHODS  = ['POST', 'PUT', 'PATCH']
COOKIE_PREFIX  = 'typo3nonce_'
SECURE_PREFIX  = '__Secure-'

Properties

$noncePool  : NoncePool
$securityAspect  : SecurityAspect

Methods

__construct()  : mixed
process()  : ResponseInterface
enrichResponseWithCookie()  : ResponseInterface
isHttps()  : bool
resolveNoncePool()  : NoncePool
resolveReceivedRequestToken()  : RequestToken|null

Constants

ALLOWED_METHODS

protected mixed ALLOWED_METHODS = ['POST', 'PUT', 'PATCH']
protected mixed COOKIE_PREFIX = 'typo3nonce_'

SECURE_PREFIX

protected mixed SECURE_PREFIX = '__Secure-'

Properties

Methods

process()

public process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
$request : ServerRequestInterface
$handler : RequestHandlerInterface
Return values
ResponseInterface

enrichResponseWithCookie()

protected enrichResponseWithCookie(ServerRequestInterface $request, ResponseInterface $response) : ResponseInterface
Parameters
$request : ServerRequestInterface
$response : ResponseInterface
Return values
ResponseInterface

isHttps()

protected isHttps(ServerRequestInterface $request) : bool
Parameters
$request : ServerRequestInterface
Return values
bool

resolveNoncePool()

protected resolveNoncePool(ServerRequestInterface $request) : NoncePool
Parameters
$request : ServerRequestInterface
Return values
NoncePool

        
On this page

Search results