Search in sources :

Example 1 with CommunitySecurityModule

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;
}
Also used : CommunitySecurityModule(org.neo4j.server.security.auth.CommunitySecurityModule) SecurityModule(org.neo4j.kernel.api.security.SecurityModule) CommunitySecurityModule(org.neo4j.server.security.auth.CommunitySecurityModule)

Aggregations

SecurityModule (org.neo4j.kernel.api.security.SecurityModule)1 CommunitySecurityModule (org.neo4j.server.security.auth.CommunitySecurityModule)1