hamiltop / rethinkdb-elixir

Rethinkdb client in pure elixir (JSON protocol)
MIT License
497 stars 64 forks source link

Add support for user authentication #117

Open almightycouch opened 7 years ago

almightycouch commented 7 years ago

Add authentication via :user and :pass options.

User accounts have been added to RethinkDB in version 2.3. The default options for connecting are [user: "admin", pass: ""]. The old authentication (using :auth_key) has been removed.

If you wish to provide the old authentication method for backward compatibility, i will update my PR to do so 😺.

almightycouch commented 7 years ago

Won't compile with Elixir < 1.2. Maybe you should update your .travis.yml to use version 1.2 and 1.3 instead. Also I would test using OPT 18 and 19 instead of 18.0 and 18.1.

almightycouch commented 7 years ago

I've updated .travis.yml to work with Elixir 1.3 and both OTP 18 and 19.

hamiltop commented 7 years ago

Awesome. I'll take a look as soon as I am able. I appreciate the help!

hamiltop commented 7 years ago

Can we get a test for user auth? Otherwise, this looks great.

almightycouch commented 7 years ago

Will write a few tests asap.

vorce commented 7 years ago

Any news on this one? I'd love to see this functionality.