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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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
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)