简体   繁体   English

在Windows Azure上设置Neo4j数据库身份验证

[英]Setting Up Neo4j Database Authentication on Windows Azure

I set up a Neo4j database on Azure following this guide . 我按照本指南在Azure上建立了Neo4j数据库。 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. 换句话说,任何人都可以通过导航到URL来访问和编辑数据库。 Can anyone point me in the right direction as to how to set up authentication? 谁能为我指出正确的身份验证方法?

First: That's a fairly old walkthrough, with the v1.8 version of Neo4j running on the preview of Virtual Machines. 第一:这是一个相当古老的演练,Neo4j的v1.8版本在虚拟机的预览上运行。 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. 注意:如果您在VM Depot中使用最新的2.0x映像,则不是这种情况。

I was able to get this working by modifying the /conf/neo4j-server.properties file and following the instructions at the github repo. 通过修改/conf/neo4j-server.properties文件并按照github存储库中的说明进行操作,可以使此工作正常进行。

# 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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM