final class TokenRequestParamChecking implements MiddlewareInterface (View source)

Check whether user supplied token is valid, if not remove any possibly dangerous stuff from request.

Check for token mismatch only if the Request method is POST. GET Requests would never have token and therefore checking mismatch does not make sense.

Methods

ResponseInterface
process(ServerRequestInterface $request, RequestHandlerInterface $handler)

No description

void
checkTokenRequestParam()

No description

Details

ResponseInterface process(ServerRequestInterface $request, RequestHandlerInterface $handler)

No description

Parameters

ServerRequestInterface $request
RequestHandlerInterface $handler

Return Value

ResponseInterface

void checkTokenRequestParam()

No description

Return Value

void