{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/4936","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/4936/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/4936/comments","events_url":"https://api.github.com/repos/composer/composer/issues/4936/events","html_url":"https://github.com/composer/composer/issues/4936","id":135063804,"number":4936,"title":"HTTP Basic Auth collides with Gitlab OAuth Token authentication","user":{"login":"shochdoerfer","id":596449,"avatar_url":"https://avatars.githubusercontent.com/u/596449?v=3","gravatar_id":"","url":"https://api.github.com/users/shochdoerfer","html_url":"https://github.com/shochdoerfer","followers_url":"https://api.github.com/users/shochdoerfer/followers","following_url":"https://api.github.com/users/shochdoerfer/following{/other_user}","gists_url":"https://api.github.com/users/shochdoerfer/gists{/gist_id}","starred_url":"https://api.github.com/users/shochdoerfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shochdoerfer/subscriptions","organizations_url":"https://api.github.com/users/shochdoerfer/orgs","repos_url":"https://api.github.com/users/shochdoerfer/repos","events_url":"https://api.github.com/users/shochdoerfer/events{/privacy}","received_events_url":"https://api.github.com/users/shochdoerfer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/composer/composer/labels/Bug","name":"Bug","color":"e10c02"},{"url":"https://api.github.com/repos/composer/composer/labels/Easy%20Pick","name":"Easy Pick","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/composer/composer/milestones/6","html_url":"https://github.com/composer/composer/milestones/Bugs","labels_url":"https://api.github.com/repos/composer/composer/milestones/6/labels","id":162532,"number":6,"title":"Bugs","description":"Bugs that have to be looked at","creator":{"login":"Seldaek","id":183678,"avatar_url":"https://avatars.githubusercontent.com/u/183678?v=3","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"open_issues":59,"closed_issues":100,"state":"open","created_at":"2012-08-18T15:15:20Z","updated_at":"2016-02-20T17:24:52Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-02-20T11:46:43Z","updated_at":"2016-02-20T17:35:20Z","closed_at":null,"body":"This might not be a problem a lot of people will hit but should be fixed to avoid confusion. Background: We recently migrated from a pure git+https setup to Gitlab. During that migration I wanted to let Satis use the GitlabDriver to improve the overall performance.\r\n\r\nIn my auth.json file I had the old HTTP Basic Auth credentials for the gitlab host (because we did not change the hostname during the migration) which after the migration did not work any more. on the first run Composer was able to ask me for the Gitlab OAuth Token and add it to the global auth.json file without a problem. But when running Composer a second time the Gitlab OAuth Token was not recognized and Composer asked me again for the Gitlab credentials.\r\n\r\nWhen removing the HTTP Basic Auth credentials Composer is running fine. I was not yet able to debug the issue in the code, so I am not sure if this is a general problem or *just* an issue with the GitlabDriver."},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/186657431","html_url":"https://github.com/composer/composer/issues/4936#issuecomment-186657431","issue_url":"https://api.github.com/repos/composer/composer/issues/4936","id":186657431,"user":{"login":"shochdoerfer","id":596449,"avatar_url":"https://avatars.githubusercontent.com/u/596449?v=3","gravatar_id":"","url":"https://api.github.com/users/shochdoerfer","html_url":"https://github.com/shochdoerfer","followers_url":"https://api.github.com/users/shochdoerfer/followers","following_url":"https://api.github.com/users/shochdoerfer/following{/other_user}","gists_url":"https://api.github.com/users/shochdoerfer/gists{/gist_id}","starred_url":"https://api.github.com/users/shochdoerfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shochdoerfer/subscriptions","organizations_url":"https://api.github.com/users/shochdoerfer/orgs","repos_url":"https://api.github.com/users/shochdoerfer/repos","events_url":"https://api.github.com/users/shochdoerfer/events{/privacy}","received_events_url":"https://api.github.com/users/shochdoerfer/received_events","type":"User","site_admin":false},"created_at":"2016-02-20T17:35:20Z","updated_at":"2016-02-20T17:35:20Z","body":"@Seldaek Currently we are not able to \"prioritize\" which auth method wins, right? Would that make sense? Somehow in this case the HTTP Basic Auth gets triggered (need to investigate where) even though the Gitlab OAuth Token would be the one that should be used. Or am I thinking way too complicated?"}}