nicolewhite/RNeo4j

Featrure request: startGraph - user password encoding

ch-ricardor opened this issue · 0 comments

a) Functionality: Ask for user:password
b) Encode user:password
c) READ ONLY option, blocking creation and updates.

If for some reason the R script will be shared with other users, would be nice to have an encoded string to provide the authentication and READ ONLY/READ WRITE access to the DB. (Access Key)

The graph connection object could transport the the read/write property to the other functions.

b)
Even it could be very easy to decode the Base64 encoding, for most regular users those characters won't make any specific sense.

Is it possible to add a functionality equivalent to the one provided by popoto.js, following the API authentication protocol ?
popoto.rest.AUTHORIZATION = "Basic dHdlZXQ6cGFzc3dvcmQ=";

"Basic " is a prefix.
dHdlZXQ6cGFzc3dvcmQ= equivalent to tweet:password
GFzc3dvcmQ= dHdlZXQ6c equivalent to �\ݝܜ٠ �ڙ]

  1. HTTP API

5.2.1.2. Authenticate to access the server
Authenticate by sending a username and a password to Neo4j using HTTP Basic Auth. Requests should include an Authorization header, with a value of Basic , where "payload" is a base64 encoded string of "username:password".

instead of:

graph = startGraph("http://localhost:7474/db/data/", username = "neo4j", password = "password")