Validated external query log
This commit is contained in:
@ -102,6 +102,11 @@ class API
|
|||||||
if (isset($data['validator'])) {
|
if (isset($data['validator'])) {
|
||||||
$method = [$data['validator'], 'validateToken'];
|
$method = [$data['validator'], 'validateToken'];
|
||||||
if ($method($request, $data)) {
|
if ($method($request, $data)) {
|
||||||
|
$this->logger->info("Validated external key", [
|
||||||
|
'path' => $request->getUri()->getPath(),
|
||||||
|
'headers' => $request->getHeaders(),
|
||||||
|
'body' => $request->getBody()->getContents()
|
||||||
|
]);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user