protected function BynderApi::getOauthConfiguration in Bynder 4.0.x
Return value
\Bynder\Api\Impl\OAuth2\Configuration
2 calls to BynderApi::getOauthConfiguration()
- BynderApi::finishOAuthTokenRetrieval in src/
BynderApi.php - Finishes the access token retrieval after the user has been redirected.
- BynderApi::getAssetBankManager in src/
BynderApi.php - Gets an instance of the asset bank manager to use for DAM queries.
File
- src/
BynderApi.php, line 511
Class
- BynderApi
- Bynder API service.
Namespace
Drupal\bynderCode
protected function getOauthConfiguration() : \Bynder\Api\Impl\OAuth2\Configuration {
$bynder_settings = $this->configFactory
->get('bynder.settings');
$bynder_configuration = new \Bynder\Api\Impl\OAuth2\Configuration($bynder_settings
->get('account_domain'), $this
->getCallback(), $bynder_settings
->get('client_id'), $bynder_settings
->get('client_secret'), NULL, [
'timeout' => $bynder_settings
->get('timeout'),
]);
return $bynder_configuration;
}