Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Featrure request: startGraph - user password encoding #78

Open
ch-ricardor opened this issue May 4, 2018 · 0 comments
Open

Featrure request: startGraph - user password encoding #78

ch-ricardor opened this issue May 4, 2018 · 0 comments

Comments

@ch-ricardor
Copy link

ch-ricardor commented May 4, 2018

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")

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant