{"action":"created","issue":{"url":"https://api.github.com/repos/hamiltop/rethinkdb-elixir/issues/113","repository_url":"https://api.github.com/repos/hamiltop/rethinkdb-elixir","labels_url":"https://api.github.com/repos/hamiltop/rethinkdb-elixir/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/hamiltop/rethinkdb-elixir/issues/113/comments","events_url":"https://api.github.com/repos/hamiltop/rethinkdb-elixir/issues/113/events","html_url":"https://github.com/hamiltop/rethinkdb-elixir/issues/113","id":180303838,"number":113,"title":"How to set user/password for connection?","user":{"login":"vorce","id":983376,"avatar_url":"https://avatars.githubusercontent.com/u/983376?v=3","gravatar_id":"","url":"https://api.github.com/users/vorce","html_url":"https://github.com/vorce","followers_url":"https://api.github.com/users/vorce/followers","following_url":"https://api.github.com/users/vorce/following{/other_user}","gists_url":"https://api.github.com/users/vorce/gists{/gist_id}","starred_url":"https://api.github.com/users/vorce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vorce/subscriptions","organizations_url":"https://api.github.com/users/vorce/orgs","repos_url":"https://api.github.com/users/vorce/repos","events_url":"https://api.github.com/users/vorce/events{/privacy}","received_events_url":"https://api.github.com/users/vorce/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-30T13:28:41Z","updated_at":"2016-09-30T17:29:08Z","closed_at":"2016-09-30T17:29:08Z","body":"I am unable to figure out how to set the user and password to use to connect to rethinkdb. Is this supported? How?\r\n\r\nAny pointers would be appreciated."},"comment":{"url":"https://api.github.com/repos/hamiltop/rethinkdb-elixir/issues/comments/250804071","html_url":"https://github.com/hamiltop/rethinkdb-elixir/issues/113#issuecomment-250804071","issue_url":"https://api.github.com/repos/hamiltop/rethinkdb-elixir/issues/113","id":250804071,"user":{"login":"vorce","id":983376,"avatar_url":"https://avatars.githubusercontent.com/u/983376?v=3","gravatar_id":"","url":"https://api.github.com/users/vorce","html_url":"https://github.com/vorce","followers_url":"https://api.github.com/users/vorce/followers","following_url":"https://api.github.com/users/vorce/following{/other_user}","gists_url":"https://api.github.com/users/vorce/gists{/gist_id}","starred_url":"https://api.github.com/users/vorce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vorce/subscriptions","organizations_url":"https://api.github.com/users/vorce/orgs","repos_url":"https://api.github.com/users/vorce/repos","events_url":"https://api.github.com/users/vorce/events{/privacy}","received_events_url":"https://api.github.com/users/vorce/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T17:29:08Z","updated_at":"2016-09-30T17:29:08Z","body":"I think I can answer this myself now. Please correct me if I'm wrong here.\r\n\r\nAt the moment this is not supported. User+password auth was introduced in rethinkdb protocol `V1_0 `. Before that (`V0_3 and V0_4`) something called an authentication key was instead used it seems.\r\nI got this from the excellent [rethinkdb docs on writing drivers](https://www.rethinkdb.com/docs/writing-drivers/).\r\n\r\nHere's a key part that solved my problem:\r\n_When communicating with RethinkDB 2.3 or later, the authentication key will be compared to the admin user account password._\r\n\r\nIdeally `rethinkdb-elixir` would support the new handshake protocol with user/password. I might give it a go myself. :)"}}
{"actor":{"display_login":"vorce"}}