The figure shows a request that enters the Middleware. The request passes from log request to process cookie and check authentication inside the Middleware. The request is then processed and a response is generated.