gpt4 book ai didi

java - 非托管扩展的 Neo.ClientError.Security.AuthorizationFailed

转载 作者:行者123 更新时间:2023-11-30 07:57:11 28 4
gpt4 key购买 nike

我使用自定义 Web 服务作为 neo4j 的非托管扩展。

这是 Neo4j 提供的详细信息,我已遵循该详细信息并创建了自己的非托管扩展。

http://neo4j.com/docs/stable/server-unmanaged-extensions.html

但我得到的答复是:

{
"errors" : [ {
"message" : "No authorization header supplied.",
"code" : "Neo.ClientError.Security.AuthorizationFailed"
} ]
}

我正在使用 neo4j2.3,我有数据库的用户名和密码,但我不知道在哪里提供网址中的身份验证详细信息以绕过此检查。

这是我的网址 http://localhost:7474/unmanaged/test/query/34553

最佳答案

您需要提供授权信息作为请求 header

Authorization: Basic bmVvNGo6c2VjcmV0

bmVvNGo6c2VjcmV0 is default password (neo4j)

更多信息在这里 - http://neo4j.com/docs/stable/rest-api-security.html

或者可以在配置文件neo4j-server.properties中关闭授权

# Disable authorization
dbms.security.auth_enabled=false

关于java - 非托管扩展的 Neo.ClientError.Security.AuthorizationFailed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32505398/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com