{"action":"closed","issue":{"url":"https://api.github.com/repos/rexxars/registry-auth-token/issues/4","repository_url":"https://api.github.com/repos/rexxars/registry-auth-token","labels_url":"https://api.github.com/repos/rexxars/registry-auth-token/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/rexxars/registry-auth-token/issues/4/comments","events_url":"https://api.github.com/repos/rexxars/registry-auth-token/issues/4/events","html_url":"https://github.com/rexxars/registry-auth-token/issues/4","id":168628027,"number":4,"title":"support basic authorization","user":{"login":"leipert","id":2906107,"avatar_url":"https://avatars.githubusercontent.com/u/2906107?v=3","gravatar_id":"","url":"https://api.github.com/users/leipert","html_url":"https://github.com/leipert","followers_url":"https://api.github.com/users/leipert/followers","following_url":"https://api.github.com/users/leipert/following{/other_user}","gists_url":"https://api.github.com/users/leipert/gists{/gist_id}","starred_url":"https://api.github.com/users/leipert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leipert/subscriptions","organizations_url":"https://api.github.com/users/leipert/orgs","repos_url":"https://api.github.com/users/leipert/repos","events_url":"https://api.github.com/users/leipert/events{/privacy}","received_events_url":"https://api.github.com/users/leipert/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-01T11:49:12Z","updated_at":"2016-08-04T14:17:16Z","closed_at":"2016-08-04T14:17:15Z","body":"Hey I opened a issue on pnpm (https://github.com/rstacruz/pnpm/issues/270), so the following is shamelessly copied from there:\r\n\r\n\r\nHey there.\r\nWe are using a private registry which just supports basic authorization. During our tests against this registry we could not download packages.\r\n\r\nUnfortunately you do not support Basic Authorization.\r\n\r\nIf you want, I could help you implement this (as we need it). Before I dig into it and creating a PR, I would like to know what is the best way to assist you with that feature.\r\n\r\nFYI: [relevant parts in npm](https://github.com/npm/npm/blob/master/lib/config/get-credentials-by-uri.js)\r\n\r\n\r\nMy `.npmrc` file looks like this:\r\n```\r\n//registry.npmjs.org/:_authToken=TOKEN\r\n\r\nregistry=https://example.com/npm/\r\n\r\n@npm:registry=https://example.com/npm/\r\n//example.com/npm/:_password=PASSWORD\r\n//example.com/npm/:username=username\r\n//example.com/npm/:email=username@example.org\r\n//example.com/npm/:always-auth=true\r\n\r\n@npm-internal:registry=https://example.com/npm-internal/\r\n//example.com/npm-internal/:_password=PASSWORD\r\n//example.com/npm-internal/:username=username\r\n//example.com/npm-internal/:email=username@example.org\r\n//example.com/npm-internal/:always-auth=true\r\n```"}}
{"actor":{"display_login":"rexxars"}}