{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/4453","labels_url":"https://api.github.com/repos/composer/composer/issues/4453/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/4453/comments","events_url":"https://api.github.com/repos/composer/composer/issues/4453/events","html_url":"https://github.com/composer/composer/issues/4453","id":108610784,"number":4453,"title":"Composer not using oAuth for private repository","user":{"login":"AndrzejFR","id":7913186,"avatar_url":"https://avatars.githubusercontent.com/u/7913186?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrzejFR","html_url":"https://github.com/AndrzejFR","followers_url":"https://api.github.com/users/AndrzejFR/followers","following_url":"https://api.github.com/users/AndrzejFR/following{/other_user}","gists_url":"https://api.github.com/users/AndrzejFR/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrzejFR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrzejFR/subscriptions","organizations_url":"https://api.github.com/users/AndrzejFR/orgs","repos_url":"https://api.github.com/users/AndrzejFR/repos","events_url":"https://api.github.com/users/AndrzejFR/events{/privacy}","received_events_url":"https://api.github.com/users/AndrzejFR/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/composer/composer/labels/Support","name":"Support","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-28T08:27:40Z","updated_at":"2015-09-28T09:28:14Z","closed_at":null,"body":"Composer is not able to download private repositories, we have them in our own packagist. Everything works fine if there is ssh key set but we want composer to authenticate using github oauth. \r\n\r\n```\r\n  - Installing footballradar/thrift-installer-plugin (dev-master 7a378a4)\r\n    Cloning 7a378a4a01a3cd14ad556a91b1a9fde12d342836\r\nExecuting command (CWD): git clone --no-checkout 'git://github.com/footballradar/thrift-installer-plugin.git' '/var/www/sbs/vendor/footballradar/thrift-installer-plugin' && cd '/var/www/sbs/vendor/footballradar/thrift-installer-plugin' && git remote add composer 'git://github.com/footballradar/thrift-installer-plugin.git' && git fetch composer\r\nExecuting command (CWD): git clone --no-checkout 'https://github.com/footballradar/thrift-installer-plugin.git' '/var/www/sbs/vendor/footballradar/thrift-installer-plugin' && cd '/var/www/sbs/vendor/footballradar/thrift-installer-plugin' && git remote add composer 'https://github.com/footballradar/thrift-installer-plugin.git' && git fetch composer\r\nExecuting command (CWD): git clone --no-checkout 'git@github.com:footballradar/thrift-installer-plugin.git' '/var/www/sbs/vendor/footballradar/thrift-installer-plugin' && cd '/var/www/sbs/vendor/footballradar/thrift-installer-plugin' && git remote add composer 'git@github.com:footballradar/thrift-installer-plugin.git' && git fetch composer\r\nExecuting command (CWD): git --version\r\nFailed: [RuntimeException] Failed to clone git@github.com:footballradar/thrift-installer-plugin.git via git, https, ssh protocols, aborting.\r\n\r\n- git://github.com/footballradar/thrift-installer-plugin.git\r\n  Cloning into '/var/www/sbs/vendor/footballradar/thrift-installer-plugin'...\r\n  warning: expected SRV RR, found RR type 1\r\n  fatal: remote error: \r\n    Repository not found.\r\n\r\n- https://github.com/footballradar/thrift-installer-plugin.git\r\n  Cloning into '/var/www/sbs/vendor/footballradar/thrift-installer-plugin'...\r\n  remote: Invalid username or password.\r\n  fatal: Authentication failed for 'https://github.com/footballradar/thrift-installer-plugin.git/'\r\n\r\n- git@github.com:footballradar/thrift-installer-plugin.git\r\n  Cloning into '/var/www/sbs/vendor/footballradar/thrift-installer-plugin'...\r\n  Permission denied (publickey).\r\n  fatal: Could not read from remote repository.\r\n  \r\n  Please make sure you have the correct access rights\r\n  and the repository exists.\r\n\r\n\r\n\r\n                                                                                                                     \r\n  [RuntimeException]                                                                                                 \r\n  Failed to clone git@github.com:footballradar/thrift-installer-plugin.git via git, https, ssh protocols, aborting.  \r\n  - git://github.com/footballradar/thrift-installer-plugin.git                                                       \r\n    Cloning into '/var/www/sbs/vendor/footballradar/thrift-installer-plugin'...                                      \r\n    warning: expected SRV RR, found RR type 1                                                                        \r\n    fatal: remote error:                                                                                             \r\n      Repository not found.                                                                                          \r\n  - https://github.com/footballradar/thrift-installer-plugin.git                                                     \r\n    Cloning into '/var/www/sbs/vendor/footballradar/thrift-installer-plugin'...                                      \r\n    remote: Invalid username or password.                                                                            \r\n    fatal: Authentication failed for 'https://github.com/footballradar/thrift-installer-plugin.git/'                 \r\n  - git@github.com:footballradar/thrift-installer-plugin.git                                                         \r\n    Cloning into '/var/www/sbs/vendor/footballradar/thrift-installer-plugin'...                                      \r\n    Permission denied (publickey).                                                                                   \r\n    fatal: Could not read from remote repository.                                                                    \r\n                                                                                                                     \r\n    Please make sure you have the correct access rights                                                              \r\n    and the repository exists.                                       \r\n```\r\n\r\nWe did run `composer.phar config -g  github-oauth.github.com <token>`,\r\nwe tried putting token in composer.json as well but no difference.\r\n\r\nMaybe the problem is in our packagist configuration but we have no idea what to look for."},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/143689623","html_url":"https://github.com/composer/composer/issues/4453#issuecomment-143689623","issue_url":"https://api.github.com/repos/composer/composer/issues/4453","id":143689623,"user":{"login":"AndrzejFR","id":7913186,"avatar_url":"https://avatars.githubusercontent.com/u/7913186?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrzejFR","html_url":"https://github.com/AndrzejFR","followers_url":"https://api.github.com/users/AndrzejFR/followers","following_url":"https://api.github.com/users/AndrzejFR/following{/other_user}","gists_url":"https://api.github.com/users/AndrzejFR/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrzejFR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrzejFR/subscriptions","organizations_url":"https://api.github.com/users/AndrzejFR/orgs","repos_url":"https://api.github.com/users/AndrzejFR/repos","events_url":"https://api.github.com/users/AndrzejFR/events{/privacy}","received_events_url":"https://api.github.com/users/AndrzejFR/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T09:28:14Z","updated_at":"2015-09-28T09:28:14Z","body":"That is very counterintuitive. I would expect oauth token to handle authentication as name suggest. Is it something you plan to support in the future? "}}