{"action":"created","issue":{"url":"https://api.github.com/repos/sonatype/bower-nexus3-resolver/issues/6","repository_url":"https://api.github.com/repos/sonatype/bower-nexus3-resolver","labels_url":"https://api.github.com/repos/sonatype/bower-nexus3-resolver/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/sonatype/bower-nexus3-resolver/issues/6/comments","events_url":"https://api.github.com/repos/sonatype/bower-nexus3-resolver/issues/6/events","html_url":"https://github.com/sonatype/bower-nexus3-resolver/pull/6","id":156862517,"number":6,"title":"Add support for encoded credentials.","user":{"login":"blindenvy","id":712289,"avatar_url":"https://avatars.githubusercontent.com/u/712289?v=3","gravatar_id":"","url":"https://api.github.com/users/blindenvy","html_url":"https://github.com/blindenvy","followers_url":"https://api.github.com/users/blindenvy/followers","following_url":"https://api.github.com/users/blindenvy/following{/other_user}","gists_url":"https://api.github.com/users/blindenvy/gists{/gist_id}","starred_url":"https://api.github.com/users/blindenvy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blindenvy/subscriptions","organizations_url":"https://api.github.com/users/blindenvy/orgs","repos_url":"https://api.github.com/users/blindenvy/repos","events_url":"https://api.github.com/users/blindenvy/events{/privacy}","received_events_url":"https://api.github.com/users/blindenvy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-25T22:14:07Z","updated_at":"2016-06-13T23:52:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sonatype/bower-nexus3-resolver/pulls/6","html_url":"https://github.com/sonatype/bower-nexus3-resolver/pull/6","diff_url":"https://github.com/sonatype/bower-nexus3-resolver/pull/6.diff","patch_url":"https://github.com/sonatype/bower-nexus3-resolver/pull/6.patch"},"body":"For enterprise users it is not an option to have clear text credentials in the configuration files. At a minimum they must be encoded. With the attached changes its possible to base64 encode the user credentials and include them in the .bowerrc file. For example:\r\n\r\nTo encode credentials you could run\r\n````\r\necho -n \"user:pass\" | openssl base64\r\ndXNlcjpwYXNz\r\n````\r\nThe following configuration would be necessary to use the encoded credentials:\r\n````\r\ncat .bowerrc\r\n{\r\n  nexus: {\r\n    auth: 'dXNlcjpwYXNz'\r\n  }\r\n}\r\n````"},"comment":{"url":"https://api.github.com/repos/sonatype/bower-nexus3-resolver/issues/comments/225742085","html_url":"https://github.com/sonatype/bower-nexus3-resolver/pull/6#issuecomment-225742085","issue_url":"https://api.github.com/repos/sonatype/bower-nexus3-resolver/issues/6","id":225742085,"user":{"login":"blindenvy","id":712289,"avatar_url":"https://avatars.githubusercontent.com/u/712289?v=3","gravatar_id":"","url":"https://api.github.com/users/blindenvy","html_url":"https://github.com/blindenvy","followers_url":"https://api.github.com/users/blindenvy/followers","following_url":"https://api.github.com/users/blindenvy/following{/other_user}","gists_url":"https://api.github.com/users/blindenvy/gists{/gist_id}","starred_url":"https://api.github.com/users/blindenvy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blindenvy/subscriptions","organizations_url":"https://api.github.com/users/blindenvy/orgs","repos_url":"https://api.github.com/users/blindenvy/repos","events_url":"https://api.github.com/users/blindenvy/events{/privacy}","received_events_url":"https://api.github.com/users/blindenvy/received_events","type":"User","site_admin":false},"created_at":"2016-06-13T23:52:52Z","updated_at":"2016-06-13T23:52:52Z","body":"I did not realize both were required, as you pointed out the documentation is misleading. I did test locally in my environment before I added this pull request and it appeared to be working, but I must have had some cached resources or still had the search registry configured with the username/password. I tried again today and agree it does appear to be required in both spots. \r\n\r\nAfter further digging there is a gap in bower-registry-client which is forcing the requirement of the username/password for private repositories. Let me see what it would take to fix that gap. "}}
{"actor":{"display_login":"blindenvy"}}