You are here

protected function GceServiceAccountAuthentication::authClient in Apigee Edge 8

File

src/Connector/GceServiceAccountAuthentication.php, line 34

Class

GceServiceAccountAuthentication
Decorator for Hybrid authentication plugin.

Namespace

Drupal\apigee_edge\Connector

Code

protected function authClient() : ClientInterface {

  /** @var \Drupal\apigee_edge\SDKConnectorInterface $sdk_connector */
  $sdk_connector = \Drupal::service('apigee_edge.sdk_connector');
  return $sdk_connector
    ->buildClient($this
    ->getAuthHeader(), $this
    ->getAuthServer());
}