neo4j / neo4j-java-driver

Neo4j Bolt driver for Java
Apache License 2.0
333 stars 155 forks source link

AuthenticationException issue #516

Closed ishaanmadan19 closed 6 years ago

ishaanmadan19 commented 6 years ago

I am having an issue with the neo4j-java driver. I am using the following dependencies in my sbt file:

libraryDependencies += "org.neo4j.driver" % "neo4j-java-driver" % "1.6.1" libraryDependencies += "neo4j-contrib" % "neo4j-spark-connector" % "2.2.1-M5"

(Scala: 2.11.12, Spark:2.3.1, Neo4j server:3.4.4)

When I try to create a driver session as follows (with my_username and my_pwd filled with my actual credentials), I keep getting the following exception:

_val driver = GraphDatabase.driver("bolt://localhost:7687", AuthTokens.basic("my_username", "mypwd")) val session = driver.session

org.neo4j.driver.v1.exceptions.AuthenticationException: The client is unauthorized due to authentication failure.

Any advice on how to fix this?

ishaanmadan19 commented 6 years ago

In particular, I am confused about the relationship between my browser sync credentials and my actual db credentials. Does someone have a resource for where I can read/learn about how these are connected?