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:
parent
e635a2730c
commit
f870396568
5 changed files with 263 additions and 16 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue