Handle authentication for api domains of GitHub/Bitbucket, fixes #9173
parent
199696d120
commit
45653c55d8
|
@ -235,6 +235,8 @@ class AuthHelper
|
||||||
$this->io->writeError($authenticationDisplayMessage, true, IOInterface::DEBUG);
|
$this->io->writeError($authenticationDisplayMessage, true, IOInterface::DEBUG);
|
||||||
$this->displayedOriginAuthentications[] = $origin;
|
$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;
|
return $headers;
|
||||||
|
|
Loading…
Reference in New Issue