rethinkdb-elixir icon indicating copy to clipboard operation
rethinkdb-elixir copied to clipboard

Add support for user authentication

Open almightycouch opened this issue 9 years ago • 6 comments

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 avatar Nov 07 '16 10:11 almightycouch

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 avatar Nov 07 '16 10:11 almightycouch

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

  • RethinkDB is now part of the Travis-CI addons and don't have to be installed manually.
  • OTP 19 requires rebar3 which is installed with mix local.rebar.
  • Travis-CI can now run without sudo: required which makes is more lightweight and faster.

almightycouch avatar Nov 07 '16 11:11 almightycouch

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

hamiltop avatar Nov 07 '16 19:11 hamiltop

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

hamiltop avatar Nov 08 '16 05:11 hamiltop

Will write a few tests asap.

almightycouch avatar Nov 08 '16 07:11 almightycouch

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

vorce avatar Jan 25 '17 13:01 vorce