我使用自定义 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,我有数据库的用户名和密码,但我不知道在哪里提供网址中的身份验证详细信息以绕过此检查。
最佳答案
您需要提供授权信息作为请求 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/