mirror of
https://github.com/composer/composer
synced 2025-05-09 16:42:57 +00:00
Rename basic-auth to http-basic, add docs/schema/config support, add local auth file support, add storage to auth.json, add store-auths config option, refs #1862
This commit is contained in:
parent
1d15910fa6
commit
90d1b6e08a
11 changed files with 202 additions and 50 deletions
|
@ -68,5 +68,12 @@ abstract class BaseIO implements IOInterface
|
|||
$this->setAuthentication($domain, $token, 'x-oauth-basic');
|
||||
}
|
||||
}
|
||||
|
||||
// reload http basic credentials from config if available
|
||||
if ($creds = $config->get('http-basic')) {
|
||||
foreach ($creds as $domain => $cred) {
|
||||
$this->setAuthentication($domain, $cred['username'], $cred['password']);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue