You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For testing, you'll need to create a user account. This can be done by inserting into the r.db('rethinkdb').table('users') table. The document should look like this:
{id: "username",password: "secret"}
The connect method will need to accept two new options "user" and "password", which need to be provided together (maybe for the Java driver, we could have a single .user(String user, String password) method ?). If these options are not specified, the driver should try to connect with the username "admin" and an empty password. If the authentication fails, a ReqlAuthError should be thrown.
I think we should still support the authKey option for backwards compatibility with existing application code. If an authKey is specified, we assume a username of "admin" and use the authKey as the password for the "admin" user.
Activity
danielmewes commentedon Mar 29, 2016
@deontologician can you work on this please?
The server-side implementation is currently available in branch vexocide/5406.
There is a reference implementation for the Python driver in this file: https://github.com/rethinkdb/rethinkdb/blob/vexocide/5406/drivers/python/rethinkdb/handshake.py
The handshake protocol is formally described here #5406 (comment) , with the authentication mechanism being described here http://tools.ietf.org/html/rfc5802 . It's probably going to be easiest to just follow the Python implementation.
For testing, you'll need to create a user account. This can be done by inserting into the
r.db('rethinkdb').table('users')table. The document should look like this:The
connectmethod will need to accept two new options "user" and "password", which need to be provided together (maybe for the Java driver, we could have a single.user(String user, String password)method ?). If these options are not specified, the driver should try to connect with the username "admin" and an empty password. If the authentication fails, aReqlAuthErrorshould be thrown.I think we should still support the
authKeyoption for backwards compatibility with existing application code. If anauthKeyis specified, we assume a username of "admin" and use theauthKeyas the password for the "admin" user.deontologician commentedon Mar 29, 2016
Ok, I'll start on this tomorrow
deontologician commentedon Apr 2, 2016
This is up in review 3569 by @VeXocide
deontologician commentedon Apr 2, 2016
The branch is josh/5406
danielmewes commentedon Apr 5, 2016
In next fbe2072
deontologician commentedon Apr 5, 2016
Thanks guys :)
C# DRIVER NEW AUTH IMPELMENTED: rethinkdb/rethinkdb#5461 and rethinkd…