use of org.neo4j.server.rest.dbms.AuthorizationEnabledFilter in project neo4j by neo4j.
the class AuthorizationModule method start.
@Override
public void start() {
final Filter authorizationFilter;
if (config.get(GraphDatabaseSettings.auth_enabled)) {
authorizationFilter = new AuthorizationEnabledFilter(authManagerSupplier, logProvider, uriWhitelist);
} else {
authorizationFilter = createAuthorizationDisabledFilter();
}
webServer.addFilter(authorizationFilter, "/*");
}
Aggregations