You are here

private function AcquiaSearchApiClient::calculateAuthString in Acquia Search 3.x

Calculates authorization string.

Return value

string Returns the auth string.

1 call to AcquiaSearchApiClient::calculateAuthString()
AcquiaSearchApiClient::searchRequest in src/AcquiaSearchApiClient.php
Create and send a request to search controller.

File

src/AcquiaSearchApiClient.php, line 218

Class

AcquiaSearchApiClient
Acquia implementation of the Search API Client.

Namespace

Drupal\acquia_search

Code

private function calculateAuthString() {
  $nonce = Crypt::randomBytesBase64(24);
  return 'id=' . $this->authInfo['app_uuid'] . '&nonce=' . $nonce . '&realm=search&version=2.0';
}