Merge branch '1.10'
commit
0a356b8a39
|
@ -125,8 +125,9 @@ class AuthHelper
|
||||||
) {
|
) {
|
||||||
throw new TransportException('Could not authenticate against '.$origin, 401);
|
throw new TransportException('Could not authenticate against '.$origin, 401);
|
||||||
}
|
}
|
||||||
} elseif ($origin === 'bitbucket.org') {
|
} elseif ($origin === 'bitbucket.org' || $origin === 'api.bitbucket.org') {
|
||||||
$askForOAuthToken = true;
|
$askForOAuthToken = true;
|
||||||
|
$origin = 'bitbucket.org';
|
||||||
if ($this->io->hasAuthentication($origin)) {
|
if ($this->io->hasAuthentication($origin)) {
|
||||||
$auth = $this->io->getAuthentication($origin);
|
$auth = $this->io->getAuthentication($origin);
|
||||||
if ($auth['username'] !== 'x-token-auth') {
|
if ($auth['username'] !== 'x-token-auth') {
|
||||||
|
|
|
@ -142,7 +142,7 @@ class Bitbucket
|
||||||
$this->io->writeError($message);
|
$this->io->writeError($message);
|
||||||
}
|
}
|
||||||
|
|
||||||
$url = 'https://confluence.atlassian.com/bitbucket/oauth-on-bitbucket-cloud-238027431.html';
|
$url = 'https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud/';
|
||||||
$this->io->writeError(sprintf('Follow the instructions on %s', $url));
|
$this->io->writeError(sprintf('Follow the instructions on %s', $url));
|
||||||
$this->io->writeError(sprintf('to create a consumer. It will be stored in "%s" for future use by Composer.', $this->config->getAuthConfigSource()->getName()));
|
$this->io->writeError(sprintf('to create a consumer. It will be stored in "%s" for future use by Composer.', $this->config->getAuthConfigSource()->getName()));
|
||||||
$this->io->writeError('Ensure you enter a "Callback URL" (http://example.com is fine) or it will not be possible to create an Access Token (this callback url will not be used by composer)');
|
$this->io->writeError('Ensure you enter a "Callback URL" (http://example.com is fine) or it will not be possible to create an Access Token (this callback url will not be used by composer)');
|
||||||
|
|
Loading…
Reference in New Issue