RequestTokenMiddleware
implements
MiddlewareInterface, LoggerAwareInterface
uses
LoggerAwareTrait
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
ALLOWED_METHODS
protected
mixed
ALLOWED_METHODS
= ['POST', 'PUT', 'PATCH']
COOKIE_PREFIX
protected
mixed
COOKIE_PREFIX
= 'typo3nonce_'
SECURE_PREFIX
protected
mixed
SECURE_PREFIX
= '__Secure-'
__construct()
public
__construct(Context $context) : mixed
Parameters
-
$context
: Context
-
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
-
resolveNoncePool()
protected
resolveNoncePool(ServerRequestInterface $request) : NoncePool
Parameters
-
$request
: ServerRequestInterface
-
resolveReceivedRequestToken()
protected
resolveReceivedRequestToken(ServerRequestInterface $request) : RequestToken|null
Parameters
-
$request
: ServerRequestInterface
-
-
throws
-
RequestTokenException