'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. So, is it a good pratice to store authentication data such as usernames and passwords in a neo4j database ? I use ot embedded but i ask for the general case. Ps. I don't want this to became an opinion based discussion , i was just wandering whether there are some technical aspects that make this operation not safe or anyway not so good.
Solution 1:[1]
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.
Solution 2:[2]
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. A structure of Nodes and Relationships is a great way to handle complex authentication and authorisation data. This should help -> Neo4j Access Management
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Michael Hunger |
Solution 2 | Nadid Linchestein |