1
0
Fork 0

Handle authentication for api domains of GitHub/Bitbucket, fixes #9173

pull/9188/head
Jordi Boggiano 2020-09-07 15:29:41 +02:00
parent 199696d120
commit 45653c55d8
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 2 additions and 0 deletions

View File

@ -235,6 +235,8 @@ class AuthHelper
$this->io->writeError($authenticationDisplayMessage, true, IOInterface::DEBUG);
$this->displayedOriginAuthentications[] = $origin;
}
} elseif (in_array($origin, array('api.bitbucket.org', 'api.github.com'), true)) {
return $this->addAuthenticationHeader($headers, str_replace('api.', '', $origin), $url);
}
return $headers;