You are here

public function SalesforceJWTPlugin::__construct in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 modules/salesforce_jwt/src/Plugin/SalesforceAuthProvider/SalesforceJWTPlugin.php \Drupal\salesforce_jwt\Plugin\SalesforceAuthProvider\SalesforceJWTPlugin::__construct()

SalesforceAuthServiceBase constructor.

Parameters

array $configuration: Configuration.

string $plugin_id: Plugin id.

mixed $plugin_definition: Plugin definition.

\OAuth\Common\Http\Client\ClientInterface $httpClient: Http client wrapper.

\Drupal\salesforce\Storage\SalesforceAuthTokenStorageInterface $storage: Token storage.

\Drupal\key\KeyRepositoryInterface $keyRepository: Key repository.

Throws

\OAuth\OAuth2\Service\Exception\InvalidScopeException On error.

Overrides SalesforceAuthProviderPluginBase::__construct

File

modules/salesforce_jwt/src/Plugin/SalesforceAuthProvider/SalesforceJWTPlugin.php, line 60

Class

SalesforceJWTPlugin
JWT Oauth plugin.

Namespace

Drupal\salesforce_jwt\Plugin\SalesforceAuthProvider

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ClientInterface $httpClient, SalesforceAuthTokenStorageInterface $storage, KeyRepositoryInterface $keyRepository) {
  $this->keyRepository = $keyRepository;
  parent::__construct($configuration, $plugin_id, $plugin_definition, $httpClient, $storage);
}