{"action":"closed","issue":{"url":"https://api.github.com/repos/composer/composer/issues/5864","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/5864/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/5864/comments","events_url":"https://api.github.com/repos/composer/composer/issues/5864/events","html_url":"https://github.com/composer/composer/issues/5864","id":188976985,"number":5864,"title":"Authenticating against GitLab using Token","user":{"login":"adamj88","id":1053393,"avatar_url":"https://avatars.githubusercontent.com/u/1053393?v=3","gravatar_id":"","url":"https://api.github.com/users/adamj88","html_url":"https://github.com/adamj88","followers_url":"https://api.github.com/users/adamj88/followers","following_url":"https://api.github.com/users/adamj88/following{/other_user}","gists_url":"https://api.github.com/users/adamj88/gists{/gist_id}","starred_url":"https://api.github.com/users/adamj88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamj88/subscriptions","organizations_url":"https://api.github.com/users/adamj88/orgs","repos_url":"https://api.github.com/users/adamj88/repos","events_url":"https://api.github.com/users/adamj88/events{/privacy}","received_events_url":"https://api.github.com/users/adamj88/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-13T15:46:24Z","updated_at":"2016-11-13T16:01:52Z","closed_at":"2016-11-13T16:01:52Z","body":"I'm referencing the [docs](https://getcomposer.org/doc/06-config.md#gitlab-token) to add a GitLab token to access my private repos, however it keeps throwing the following exception:\r\n\r\n```\r\n[Composer\\Downloader\\TransportException (401)]\r\n  Could not authenticate against gitlab.com\r\n```\r\n\r\nMy auth.json file with a token generated from [personal access tokens](https://gitlab.com/profile/personal_access_tokens):\r\n\r\n```\r\n{\r\n    \"gitlab-token\": {\r\n\t\"gitlab.com\": \"token here\"\r\n    }\r\n}\r\n```\r\n\r\nIs there any way to get this to authenticate correctly? I've seen the OAuth section but I'm not sure how this works with App Id/Secret Id/Redirect URI."}}
{"actor":{"display_login":"adamj88"}}