code: public function addConfigSetting($name, $value)
      {
          $authConfig = $this->authConfig;
          $this->manipulateJson('addConfigSetting', $name, $value, function (&$config, $key, $val) use ($authConfig) {
              if (preg_match('{^(bitbucket-oauth|github-oauth|gitlab-oauth|gitlab-token|http-basic|platform)\.}', $key)) {
                  list($key, $host) = explode('.', $key, 2);
                  if ($authConfig) {
                      $config[$key][$host] = $val;
                  } else {
                      $config['config'][$key][$host] = $val;
                  }
              } else {
                  $config['config'][$key] = $val;
              }
          });
      }
docs: {@inheritdoc}