简体   繁体   English

将身份验证数据存储在 neo4j 个节点中是一个好习惯吗?

[英]is it a good pratice to store authentication data in neo4j nodes?

This may seem to be an ingenuous question but I searched for examples without finding anything about it.这似乎是一个天真的问题,但我搜索了示例但没有找到任何相关信息。 So, is it a good practice to store authentication data such as usernames and passwords in a neo4j database?那么,将用户名和密码等身份验证数据存储在 neo4j 数据库中是一种好的做法吗? I use to embed but I ask for the general case.我过去常常嵌入,但我要求一般情况。 Ps.附言。 I don't want this to become an opinion-based discussion, I was just wondering whether there are some technical aspects that make this operation not safe or anyway not so good.我不希望这成为一个基于意见的讨论,我只是想知道是否有一些技术方面使这个操作不安全或者无论如何都不太好。

You should be fine, as long as you hash and salt your passwords correctly. 只要您正确地对密码进行哈希处理和加盐处理,就可以了。

And make sure to communicate over an https connection with authentication with the db or in a trusted network. 并确保通过https连接与数据库或受信任的网络中的身份验证进行通信。

You can store authentication data in Neo4j nodes with no issues at all, as long as you properly encrypt the passwords and follow other guidelines.只要正确加密密码并遵循其他准则,您就可以将身份验证数据存储在 Neo4j 个节点中,完全没有问题。 A structure of Nodes and Relationships is a great way to handle complex authentication and authorisation data.节点和关系结构是处理复杂身份验证和授权数据的好方法。 This should help -> Neo4j Access Management这应该有所帮助 -> Neo4j 访问管理

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

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