public static function SalesforceAuthProviderPluginManager::updateAuthConfig in Salesforce Suite 8.3
Backwards-compatibility for legacy singleton auth.
Deprecated
BC legacy auth scheme only, do not use, will be removed.
3 calls to SalesforceAuthProviderPluginManager::updateAuthConfig()
- RestClient::setConsumerKey in src/
Rest/ RestClient.php - Consumer key setter.
- RestClient::setConsumerSecret in src/
Rest/ RestClient.php - Consumer key setter.
- RestClient::setLoginUrl in src/
Rest/ RestClient.php - Login url setter.
File
- src/
SalesforceAuthProviderPluginManager.php, line 66
Class
- SalesforceAuthProviderPluginManager
- Auth provider plugin manager.
Namespace
Drupal\salesforceCode
public static function updateAuthConfig() {
$oauth = self::getAuthConfig();
$config = \Drupal::configFactory()
->getEditable('salesforce.settings');
$settings = [
'consumer_key' => $config
->get('consumer_key'),
'consumer_secret' => $config
->get('consumer_secret'),
'login_url' => $config
->get('login_url'),
];
$oauth
->set('provider_settings', $settings)
->save();
}