1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 16:42:57 +00:00

Add oauth2 support for gitlab

This commit is contained in:
Roshan Gautam 2015-04-10 21:45:24 +00:00
parent e635a2730c
commit f870396568
5 changed files with 263 additions and 16 deletions

View file

@ -69,9 +69,9 @@ abstract class BaseIO implements IOInterface
}
}
if ($tokens = $config->get('gitlab-tokens')) {
if ($tokens = $config->get('gitlab-oauth')) {
foreach ($tokens as $domain => $token) {
$this->setAuthentication($domain, $token, 'gitlab-private-token');
$this->setAuthentication($domain, $token, 'oauth2');
}
}