Neo4j:身份验证仅在浏览器中失败,否则成功(Neo4j: Authentication Failure in browser only, success otherwise)
尝试通过Neo4j浏览器连接时出现身份验证错误:
The client is unauthorized due to authentication failure. (ID:3F07571939120DB3905D8D08F1A7366A4AC6A49B2AC3F43AFA76A7AEAF221DB3)
但是,我们的应用程序可以使用我们在浏览器上尝试的相同凭据,通过API连接并发出请求。
有没有我可能缺少的服务器配置? 这是我们的版本。
Neo4j Version 3.0.1
Browser Version 2.0.0-M04
I'm getting an authentication error when trying to connect via the Neo4j Browser:
The client is unauthorized due to authentication failure. (ID:3F07571939120DB3905D8D08F1A7366A4AC6A49B2AC3F43AFA76A7AEAF221DB3)
However, our applications can connect and make requests all day through the APIs using the same credentials that we are trying at the browser.
Are there any server configs that I may be missing for this? Here are our versions.
Neo4j Version 3.0.1
Browser Version 2.0.0-M04
原文:https://stackoverflow.com/questions/39983333
更新时间:2021-04-15 11:04
最满意答案
这对我运行的Neo4j服务器和浏览器版本来说是个问题。 在neo4j的github上提交了一个问题后,他们能够为我们识别出这个:
建议是禁用浏览器的bolt,我能够再次连接。
This turned out to be a bolt problem with the versions of Neo4j server and browser that i was running. Having submitted an issue over neo4j's github, they were able to identify this for us:
The recommendation was to disable bolt for the browser, and I was able to connect once again.
相关问答
您可以尝试使用该过程从APOC库创建虚拟关系 : MATCH st=(S:Student)-[:StudiesIn]->(:Class)
WITH S, collect(distinct P) as PS
UNWIND PS as P
CALL apoc.create.vRelationship(S,'HasAsProfessor',{}, P) YIELD rel
RETURN S, rel, P
更新 :要在neo4j浏览器中显示,需要创建
...
因此,Neo4j浏览器应用程序使用Neo4j javascript驱动程序的标准查询数据构建自己的用户界面(包括SVG)。 Neo4j数据库不包含用于将信息导出为SVG的构建。 也不应该。 SVG图形是一个商业决策。 您想要在应用程序中显示图形数据的方式不太可能与我想要显示图形数据的方式相同。 你需要自己构建这个功能。 Neo4j有一篇关于图形可视化的文章,可以帮助你实现这一点。 我相信Neo4j浏览器应用程序利用非常流行的(和开源的) D3.js数据可视化库来构建它的图形可视化/ SVG。 ht
...
如果您单击使用信息部分下的“查看使用说明”,则应该在此处看到以下内容: 默认密码是您的EC2实例ID。 If you click on the "View Usage Instructions" under the Usage Information section, you should see this in there: The default password is your EC2 instance id.
使用浏览器传递身份验证标头的最简单方法是使用in-URL身份验证: http://username:password@localhost:7474/user/neo4j 更一般地说,在测试REST API时,最好使用诸如curl之类的命令行工具而不是浏览器。 如果您使用的是Linux / Mac,那么您可能已经安装了curl。 如果你在Windows上,可以下载curl。 Curl允许你微调你发送的头文件,如下所示: curl --header 'Authorization: Basic dGVz
...
您需要通过neo4jrb提供授权信息。 自从版本2.2 Neo4j支持授权。 http://neo4j.com/docs/stable/rest-api-security.html 默认值是 user: neo4j
pass: neo4j
您可以关闭配置文件neo4j-server.properties中的授权 # Disable authorization
dbms.security.auth_enabled=false
You need to provide authorization i
...
这对我运行的Neo4j服务器和浏览器版本来说是个问题。 在neo4j的github上提交了一个问题后,他们能够为我们识别出这个: https://github.com/neo4j/neo4j-browser/issues/280 建议是禁用浏览器的bolt,我能够再次连接。 This turned out to be a bolt problem with the versions of Neo4j server and browser that i was running. Having sub
...
浏览器和正在使用的驱动程序之间的HTTP连接器支持有一些杂耍,这种切换并不完整,事情的状态是浏览器仅支持螺栓连接。 javascript bolt驱动程序正在升级以处理http连接,我想,所以您可能需要等到下一个3.2.x版本再次使用http连接器。 我认为这个问题应该跟踪它。 There's a bit of juggling going on for HTTP connector support between the browser and the driver being used, a
...
从您用于登录neo4j的用户名和密码错误的错误看起来非常清楚: [ { code: 'Neo.ClientError.Security.Unauthorized',
message: 'The client is unauthorized due to authentication failure.' } ]
Seems pretty clear from the error that the user name and password you're using to login to
...
最可能的问题是您还没有完成neo4j服务器的设置。 如果您还没有使用'neo4j'作为虚拟密码。 在您设置密码之前,Neo4j不允许您通过螺栓连接。 要执行此操作,您可以登录浏览器界面http:// localhost:7474输入默认用户名和密码,系统将提示您输入新的用户名和密码。 或者如果您正在使用命令行安装,您还可以运行neo4j-admin set-initial-password [password] 。 希望有所帮助。 (如果您需要更多帮助,请在聊天中向我发送消息,我从问题的评论开始。
...