SuzLy
SuzLy

Reputation: 133

Authentication to neo4j fails

I want to access the neo4j database. I tried the following:

    ClientResource resource = new ClientResource("http://localhost:7474/db/data/cypher");
    ChallengeResponse ch = new ChallengeResponse(ChallengeScheme.HTTP_BASIC);
    ch.setRawValue("bmVvNGo6bmVvNGo=");
    resource.setChallengeResponse(ch);
    Representation re = resource.post(query);

however, I get an error:

    Unauthorized (401) - Unauthorized

What am I doing wrong in the authentication?

Upvotes: 1

Views: 854

Answers (1)

Michael Hunger
Michael Hunger

Reputation: 41706

You are using neo4j/neo4j please change the password in the server first and then use that.

Upvotes: 1

Related Questions