I am currently trying to learn spring MVC and got interested in neo4j so I decided to try a small project which has a basic index, login and homepage. All users are supposed to have access to the index page but only logged in users should be able to view the homepage. Currently, I have spring working with in memory authentication. I can also read and write from the neo4j database and can store users in it, but I want to authenticate against those users within the database. I have found many tutorials involving MySQL and have several projects working but can't find anything regarding this. I need someone to simply create a registration page for users and make the authentication to use the existing users within the database. So basically I need one thymeleaf view, a class and a slight modification to the spring security configuration, with detailed documentation so that I understand how it works.