public function SearchApiAcquiaSearchConnection::authenticateResponse in Acquia Search for Search API 7.2
Validate the hmac for the response body.
Return value
The response object.
3 calls to SearchApiAcquiaSearchConnection::authenticateResponse()
- SearchApiAcquiaSearchConnection::makeServletRequest in includes/
v2/ SearchApiAcquiaSearchConnection.php - Make a request to a servlet (a path) that's not a standard path.
- SearchApiAcquiaSearchConnection::sendRawGet in includes/
v2/ SearchApiAcquiaSearchConnection.php - Central method for making a GET operation against this Solr Server
- SearchApiAcquiaSearchConnection::sendRawPost in includes/
v2/ SearchApiAcquiaSearchConnection.php - Central method for making a POST operation against this Solr Server
File
- includes/
v2/ SearchApiAcquiaSearchConnection.php, line 122
Class
- SearchApiAcquiaSearchConnection
- Starting point for the Solr API. Represents a Solr server resource and has methods for pinging, adding, deleting, committing, optimizing and searching.
Code
public function authenticateResponse($response, $nonce, $url) {
$hmac = $this
->extractHmac($response->headers);
if (!$this
->validResponse($hmac, $nonce, $response->data)) {
throw new Exception('Authentication of search content failed url: ' . $url);
}
return $response;
}