Datos para manejar mejor los requests externos.
This commit is contained in:
@ -24,7 +24,10 @@ class Authentication
|
|||||||
if ($this->service->isIn() or $this->isValid($request)) {
|
if ($this->service->isIn() or $this->isValid($request)) {
|
||||||
return $handler->handle($request);
|
return $handler->handle($request);
|
||||||
}
|
}
|
||||||
$this->logger->notice("Not logged in.");
|
$this->logger->notice("Not logged in.", [
|
||||||
|
'REMOTE_ADDR' => $request->getServerParams()['REMOTE_ADDR'],
|
||||||
|
'REQUEST_URI' => $request->getServerParams()['REQUEST_URI']
|
||||||
|
]);
|
||||||
$response = $this->responseFactory->createResponse(307, 'Not logged in')
|
$response = $this->responseFactory->createResponse(307, 'Not logged in')
|
||||||
->withHeader('Referer', (string) $request->getUri())
|
->withHeader('Referer', (string) $request->getUri())
|
||||||
->withHeader('X-Redirected-URI', (string) $request->getUri());
|
->withHeader('X-Redirected-URI', (string) $request->getUri());
|
||||||
|
Reference in New Issue
Block a user