neo4j/neo4j-example-auth-plugins

Name: neo4j-example-auth-plugins

Owner: Neo4j

Description: Example authentication and authorization plugins for Neo4j

Created: 2016-09-27 14:25:42.0

Updated: 2017-09-06 02:53:36.0

Pushed: 2018-03-02 05:17:00.0

Homepage: null

Size: 54

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

neo4j-example-auth-plugins

Example authentication and authorization plugins for Neo4j

You have to run this with Java 8.

If you just want to build the plugins, you can choose to ignore integration tests by running:

mvn clean install -DskipITs 
Install plugins in Neo4j

Copy the output jar file into the plugins folder of Neo4j Enterprise Edition 3.1 or later:

cp plugins/target/neo4j-example-auth-plugins-<VERSION>.jar <NEO4J-HOME>/plugins/

Edit the Neo4j configuration file <NEO4J-HOME>/conf/neo4j.conf and add the dbms.security.auth_provider setting, e.g.:

dbms.security.auth_provider=plugin-org.neo4j.example.auth.plugin.MyAuthPlugin

You can also enable multiple plugins simultaneously with the dbms.security.auth_providers setting, e.g.:

dbms.security.auth_providers=plugin-MyAuthPlugin1,plugin-MyAuthPlugin2

You can also toggle authentication and authorization enabled individually, e.g.:

dbms.security.plugin.authentication_enabled=true
dbms.security.plugin.authorization_enabled=false

(NOTE: This will currently not work with a plugin implementing the simplified AuthPlugin interface, since it will not be loaded unless both settings are either true or left out)


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.