Search in sources :

Example 1 with AuthorizationEnabledFilter

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, "/*");
}
Also used : AuthorizationDisabledFilter(org.neo4j.server.rest.dbms.AuthorizationDisabledFilter) AuthorizationEnabledFilter(org.neo4j.server.rest.dbms.AuthorizationEnabledFilter) Filter(javax.servlet.Filter) AuthorizationEnabledFilter(org.neo4j.server.rest.dbms.AuthorizationEnabledFilter)

Aggregations

Filter (javax.servlet.Filter)1 AuthorizationDisabledFilter (org.neo4j.server.rest.dbms.AuthorizationDisabledFilter)1 AuthorizationEnabledFilter (org.neo4j.server.rest.dbms.AuthorizationEnabledFilter)1