{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/5996","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/5996/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/5996/comments","events_url":"https://api.github.com/repos/composer/composer/issues/5996/events","html_url":"https://github.com/composer/composer/issues/5996","id":197613615,"number":5996,"title":"oAuth authentication for Bitbucket private repos stopped working with v1.3.0 ","user":{"login":"acelaya","id":2719332,"avatar_url":"https://avatars.githubusercontent.com/u/2719332?v=3","gravatar_id":"","url":"https://api.github.com/users/acelaya","html_url":"https://github.com/acelaya","followers_url":"https://api.github.com/users/acelaya/followers","following_url":"https://api.github.com/users/acelaya/following{/other_user}","gists_url":"https://api.github.com/users/acelaya/gists{/gist_id}","starred_url":"https://api.github.com/users/acelaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acelaya/subscriptions","organizations_url":"https://api.github.com/users/acelaya/orgs","repos_url":"https://api.github.com/users/acelaya/repos","events_url":"https://api.github.com/users/acelaya/events{/privacy}","received_events_url":"https://api.github.com/users/acelaya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-26T19:18:10Z","updated_at":"2016-12-26T19:32:39Z","closed_at":null,"body":"My `composer.json`:\r\n\r\n```json\r\n{\r\n    \"name\": \"future/rest-api\",\r\n    \"license\": \"proprietary\",\r\n    \"require\": {\r\n        \"php\": \"^7.0\",\r\n        \"zendframework/zend-expressive\": \"^1.0\",\r\n        \"zendframework/zend-stdlib\": \"^3.0\",\r\n        \"zendframework/zend-expressive-fastroute\": \"^1.3\",\r\n        \"zendframework/zend-servicemanager\": \"^3.0\",\r\n        \"zendframework/zend-expressive-twigrenderer\": \"^1.0\",\r\n        \"zendframework/zend-config\": \"^2.6\",\r\n        \"zendframework/zend-i18n\": \"^2.7\",\r\n        \"zendframework/zend-inputfilter\": \"^2.7\",\r\n        \"zendframework/zend-permissions-acl\": \"^2.6\",\r\n        \"zendframework/zend-crypt\": \"^3.1\",\r\n        \"zendframework/zend-paginator\": \"^2.7\",\r\n        \"zendframework/zend-config-aggregator\": \"^0.1.0\",\r\n        \"acelaya/zsm-annotated-services\": \"^1.0\",\r\n        \"doctrine/orm\": \"^2.5\",\r\n        \"doctrine/migrations\": \"^1.4\",\r\n        \"symfony/console\": \"^3.1\",\r\n        \"symfony/process\": \"^3.1\",\r\n        \"firebase/php-jwt\": \"^4.0\",\r\n        \"monolog/monolog\": \"^1.21\",\r\n        \"theorchard/monolog-cascade\": \"^0.4\",\r\n        \"future/common\": \"^2.2\",\r\n        \"future/core\": \"^2.1\",\r\n        \"swiftmailer/swiftmailer\": \"^5.4\",\r\n        \"myclabs/php-enum\": \"^1.4\",\r\n        \"ramsey/uuid\": \"^3.5\",\r\n        \"ramsey/uuid-doctrine\": \"^1.2\",\r\n        \"league/fractal\": \"^0.14\",\r\n        \"predis/predis\": \"^1.1\",\r\n        \"guzzlehttp/guzzle\": \"^6.2\",\r\n        \"jms/serializer\": \"^1.4\"\r\n    },\r\n    \"require-dev\": {\r\n        \"phpunit/phpunit\": \"^5.0\",\r\n        \"phpunit/dbunit\": \"^2.0\",\r\n        \"phpunit/phpcov\": \"^3.1\",\r\n        \"squizlabs/php_codesniffer\": \"^2.3\",\r\n        \"filp/whoops\": \"^2.0\",\r\n        \"symfony/var-dumper\": \"^3.1\",\r\n        \"vlucas/phpdotenv\": \"^2.3\",\r\n        \"devster/ubench\": \"^1.2\"\r\n    },\r\n    \"autoload\": {\r\n        \"psr-4\": {\r\n            \r\n        },\r\n        \"files\": [\r\n            \r\n        ]\r\n    },\r\n    \"autoload-dev\": {\r\n        \"psr-4\": {\r\n            \r\n        }\r\n    },\r\n    \"scripts\": {\r\n        \"check\": [\r\n            \"@cs\",\r\n            \"@test\"\r\n        ],\r\n        \"ci\": [\r\n            \"@check\",\r\n            \"@func-test\"\r\n        ],\r\n        \"cs\": \"phpcs\",\r\n        \"cs-fix\": \"phpcbf\",\r\n        \"test\": \"phpunit --colors=always\",\r\n        \"func-test\": \"phpunit --colors=always --config=phpunit-func.xml\",\r\n        \"pretty-test\": \"phpunit --coverage-html build/html\",\r\n        \"complete-pretty-test\": [\r\n            \"phpunit --coverage-php build/coverage-unit.cov\",\r\n            \"phpunit --config=phpunit-func.xml --coverage-php build/coverage-func.cov\",\r\n            \"phpcov merge --html build/html build\"\r\n        ],\r\n        \"migrate\": \"doctrine-migrations migrations:migrate --no-interaction\",\r\n        \"migrate-prev\": \"doctrine-migrations migrations:migrate prev --no-interaction\"\r\n    },\r\n    \"config\": {\r\n        \"process-timeout\": 0\r\n    },\r\n    \"repositories\": [\r\n        {\r\n            \"type\": \"vcs\",\r\n            \"url\": \"https://bitbucket.org/future/common.git\"\r\n        },\r\n        {\r\n            \"type\": \"vcs\",\r\n            \"url\": \"https://bitbucket.org/future/core.git\"\r\n        }\r\n    ]\r\n}\r\n```\r\n\r\nOutput of `composer diagnose`:\r\n\r\n```\r\nChecking composer.json: OK\r\nChecking platform settings: OK\r\nChecking git settings: OK\r\nChecking http connectivity to packagist: OK\r\nChecking https connectivity to packagist: OK\r\nChecking github.com rate limit: OK\r\nChecking disk free space: OK\r\nChecking pubkeys: \r\nTags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642\r\nDev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952\r\nOK\r\nChecking composer version: OK\r\n```\r\n\r\nWhen I run this command:\r\n\r\n```\r\ncomposer update\r\n```\r\n\r\nI get the following output:\r\n\r\n```\r\nLoading composer repositories with package information\r\n\r\n                                                \r\n  [Composer\\Downloader\\TransportException]      \r\n  Could not authenticate against bitbucket.org  \r\n                                                \r\n\r\nupdate [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...\r\n```\r\n\r\nAnd I expected this to happen:\r\n\r\nTo update the components.\r\n\r\nWe have two private bitbucket repositories, to which we authenticate using oAuth keys defined in the `~/.composer/auth.json` file.\r\nIt was properly working until we have updated to composer v1.3.0. With this version we get the previous error.\r\nHowever, it works while using plain username and password instead of oAuth keys, but that's not an option for our continuous integration server"},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/269236787","html_url":"https://github.com/composer/composer/issues/5996#issuecomment-269236787","issue_url":"https://api.github.com/repos/composer/composer/issues/5996","id":269236787,"user":{"login":"margori","id":1149126,"avatar_url":"https://avatars.githubusercontent.com/u/1149126?v=3","gravatar_id":"","url":"https://api.github.com/users/margori","html_url":"https://github.com/margori","followers_url":"https://api.github.com/users/margori/followers","following_url":"https://api.github.com/users/margori/following{/other_user}","gists_url":"https://api.github.com/users/margori/gists{/gist_id}","starred_url":"https://api.github.com/users/margori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/margori/subscriptions","organizations_url":"https://api.github.com/users/margori/orgs","repos_url":"https://api.github.com/users/margori/repos","events_url":"https://api.github.com/users/margori/events{/privacy}","received_events_url":"https://api.github.com/users/margori/received_events","type":"User","site_admin":false},"created_at":"2016-12-26T19:32:39Z","updated_at":"2016-12-26T19:32:39Z","body":"I'm also having this issue."}}
{"actor":{"display_login":"margori"}}