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

main
Jordi Boggiano 4 years ago
parent 199696d120
commit 45653c55d8
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -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;

Loading…
Cancel
Save