{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/209","labels_url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/209/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/209/events","html_url":"https://github.com/elastic/elasticsearch-py/issues/209","id":64297191,"number":209,"title":"Support for custom authentication objects for requests module","user":{"login":"sim0nx","id":1769773,"avatar_url":"https://avatars.githubusercontent.com/u/1769773?v=3","gravatar_id":"","url":"https://api.github.com/users/sim0nx","html_url":"https://github.com/sim0nx","followers_url":"https://api.github.com/users/sim0nx/followers","following_url":"https://api.github.com/users/sim0nx/following{/other_user}","gists_url":"https://api.github.com/users/sim0nx/gists{/gist_id}","starred_url":"https://api.github.com/users/sim0nx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sim0nx/subscriptions","organizations_url":"https://api.github.com/users/sim0nx/orgs","repos_url":"https://api.github.com/users/sim0nx/repos","events_url":"https://api.github.com/users/sim0nx/events{/privacy}","received_events_url":"https://api.github.com/users/sim0nx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-25T15:21:20Z","updated_at":"2015-03-25T16:22:45Z","closed_at":null,"body":"Hi,\r\n\r\nSeveral transport classes are available, one of them is \"requests\".\r\nRequests supports basic-authentication but far more than that ([0]). In order to support this a few lines would need to be changed to allow for providing an authentication object ([1]).\r\n\r\nI have the code ready ([1]) for this and am actively using it.\r\n\r\nWould you be willing to accept this contribution ?\r\n\r\n\r\n[0]: http://docs.python-requests.org/en/latest/user/advanced/#custom-authentication\r\n[1]: https://github.com/elastic/elasticsearch-py/compare/master...sim0nx:requests_custom_authentication"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/comments/86103334","html_url":"https://github.com/elastic/elasticsearch-py/issues/209#issuecomment-86103334","issue_url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/209","id":86103334,"user":{"login":"sim0nx","id":1769773,"avatar_url":"https://avatars.githubusercontent.com/u/1769773?v=3","gravatar_id":"","url":"https://api.github.com/users/sim0nx","html_url":"https://github.com/sim0nx","followers_url":"https://api.github.com/users/sim0nx/followers","following_url":"https://api.github.com/users/sim0nx/following{/other_user}","gists_url":"https://api.github.com/users/sim0nx/gists{/gist_id}","starred_url":"https://api.github.com/users/sim0nx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sim0nx/subscriptions","organizations_url":"https://api.github.com/users/sim0nx/orgs","repos_url":"https://api.github.com/users/sim0nx/repos","events_url":"https://api.github.com/users/sim0nx/events{/privacy}","received_events_url":"https://api.github.com/users/sim0nx/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T16:22:45Z","updated_at":"2015-03-25T16:22:45Z","body":"Hi,\r\n\r\nThanks, good point. I implemented a check for the python version and test for either basestring (py2) or str (py3).\r\n\r\nDoes that look OK ?"}}