use of org.neo4j.server.security.auth.CommunitySecurityModule in project neo4j by neo4j.
the class CommunityEditionModule method makeSecurityModule.
private SecurityProvider makeSecurityModule(GlobalModule globalModule) {
globalModule.getGlobalDependencies().satisfyDependency(CommunitySecurityLog.NULL_LOG);
setupSecurityGraphInitializer(globalModule);
if (globalModule.getGlobalConfig().get(GraphDatabaseSettings.auth_enabled)) {
SecurityModule securityModule = new CommunitySecurityModule(globalModule.getLogService(), globalModule.getGlobalConfig(), globalModule.getGlobalDependencies());
securityModule.setup();
return securityModule;
}
return NoAuthSecurityProvider.INSTANCE;
}
Aggregations