private function getConfiguration()
{
$config = new Config();
// add dir to the config
$config->merge(['config' => ['home' => $this->getComposerHome()]]);
// load global auth file
$file = new JsonFile($config->get('home') . '/auth.json');
if ($file->exists()) {
$config->merge(['config' => $file->read()]);
}
$config->setAuthConfigSource(new JsonConfigSource($file, true));
return $config;
}