You are here

protected function AcquiaSearchService::authenticateResponse in Acquia Search 6.3

Validate the hmac for the response body.

Return value

The response object.

3 calls to AcquiaSearchService::authenticateResponse()
AcquiaSearchService::makeServletRequest in ./Acquia_Search_Service.php
Make a request to a servlet (a path) that's not a standard path.
AcquiaSearchService::_sendRawGet in ./Acquia_Search_Service.php
Central method for making a GET operation against this Solr Server
AcquiaSearchService::_sendRawPost in ./Acquia_Search_Service.php
Central method for making a POST operation against this Solr Server

File

./Acquia_Search_Service.php, line 63

Class

AcquiaSearchService

Code

protected function authenticateResponse($response, $nonce, $url) {
  $hmac = acquia_search_extract_hmac($response->headers);
  if (!acquia_search_valid_response($hmac, $nonce, $response->data, NULL, $this->env_id)) {
    throw new Exception('Authentication of search content failed url: ' . $url);
  }
  return $response;
}