adrice727
adrice727

Reputation: 1492

Setting Up Neo4j Database Authentication on Windows Azure

I set up a Neo4j database on Azure following this guide. The set-up process went fine. The issue I'm having is that the database is not asking for a username or password when I access it though the public port. In other words, anyone can access and edit the database by simply navigating to the URL. Can anyone point me in the right direction as to how to set up authentication?

Upvotes: 0

Views: 210

Answers (2)

dholtz
dholtz

Reputation: 91

I was able to get this working by modifying the /conf/neo4j-server.properties file and following the instructions at the github repo.

# Basic Auth-Filter-Extension
# See docs here: https://github.com/neo4j-contrib/authentication-extension
org.neo4j.server.credentials=your_user_name:your_password
org.neo4j.server.thirdparty_jaxrs_classes=org.neo4j.server.extension.auth=/auth

Upvotes: 0

David Makogon
David Makogon

Reputation: 71121

First: That's a fairly old walkthrough, with the v1.8 version of Neo4j running on the preview of Virtual Machines. And that image had a pre-set username and password. Look closely at the login box:

"The server says neo4j graphdb"

Those two will be your username and password.

Note: This is not the case if you use the latest 2.0x image in VM Depot.

Upvotes: 1

Related Questions