class SecurityEntryPointMiddleware implements MiddlewareInterface (View source)

A HTTP middleware that handles authentication exceptions that were thrown by the dispatcher (\Neos\Flow\Mvc\Dispatcher::dispatch()) and

  • rethrows the exception if no token with Entry Point is authenticated
  • or otherwise invokes the Entry Point of all authenticated tokens

Properties

protected Context $securityContext
protected LoggerInterface $securityLogger
protected ActionRequestFactory $actionRequestFactory

Methods

ResponseInterface
process(ServerRequestInterface $request, RequestHandlerInterface $next)

No description

ResponseInterface
buildHttpResponse()

Build a base HTTP Response in case of a missing authentication exception

Details

ResponseInterface process(ServerRequestInterface $request, RequestHandlerInterface $next)

No description

Parameters

ServerRequestInterface $request
RequestHandlerInterface $next

Return Value

ResponseInterface

protected ResponseInterface buildHttpResponse()

Build a base HTTP Response in case of a missing authentication exception

Return Value

ResponseInterface