All Projects → neo4j-contrib → Authentication Extension

neo4j-contrib / Authentication Extension

Neo4j Server Auth Extension

Programming Languages

java
68154 projects - #9 most used programming language

Basic Auth-Filter-Extension for Neo4j-Server

Just put the jar-file into plugins and add the following lines to the conf/neo4j-server.properties file. The username:password combination are the admin credentials, please change as appropriate.

org.neo4j.server.credentials=username:password
org.neo4j.server.thirdparty_jaxrs_classes=org.neo4j.server.extension.auth=/auth

Manage the credentials by sending POST requests to the http://server:port/auth endpoint.

List existing users

GET http://server:port/auth/list

returns data in the form {"user:pass":"RW", "user2:pass2":"RO"}

curl --user username:password http://localhost:7474/auth/list

Adding users with form-param: user=username:password

POST http://server:port/auth/add-user-ro
POST http://server:port/auth/add-user-rw

returns "OK" on success

curl --user username:password -d "user=username1:password1" http://localhost:7474/auth/add-user-rw
curl --user username:password -d "user=username2:password2" http://localhost:7474/auth/add-user-ro

Removing users with form-param: user=username:password

POST http://server:port/auth/remove-user  

curl --user username:password -d "user=username2:password2" http://localhost:7474/auth/remove-user

returns "OK" on success

Download of precompiled jars

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].