You are here

class OauthAuthentication in Apigee Edge 8

Decorator for OAuth authentication plugin.

@todo: move to \Drupal\apigee_edge\Connector namespace.

Hierarchy

  • class \Drupal\apigee_edge\OauthAuthentication extends \Apigee\Edge\HttpClient\Plugin\Authentication\Oauth

Expanded class hierarchy of OauthAuthentication

1 file declares its use of OauthAuthentication
ApigeeAuthKeyType.php in src/Plugin/KeyType/ApigeeAuthKeyType.php

File

src/OauthAuthentication.php, line 32

Namespace

Drupal\apigee_edge
View source
class OauthAuthentication extends Oauth {

  /**
   * {@inheritdoc}
   */
  protected function authClient() : ClientInterface {

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

}

Members