RequestTokenMiddleware implements MiddlewareInterface

Internal

Table of Contents

Interfaces

MiddlewareInterface

Constants

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

Properties

$logger  : LoggerInterface
$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

$logger read-only

protected LoggerInterface $logger

Methods

__construct()

public __construct(Context $context, LoggerInterface $logger) : mixed
Parameters
$context : Context
$logger : LoggerInterface

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