My journal for Code Fellows
The main strategy interface for authentication when it comes to SpringMVC is AuthenticationManager. This interface will return one of three options in its authenticate() method which are Authentication, AuthenticationException, and null. The first return true that the input is valid, second being invalid and third being undecided.
Quick and Dirty Spring Auth Setup
Set up a user model and repo that connects it to the database.
Create a controller that will be handling the model
Have a method in the repo that will make pulling a username from the database easier
Set up a registration route that will store the user and password into the database while hashing to the password when its stored.
Set up a login page that will use the findByUsername method made in the repo
I would like to know more about limiting access through the ProviderManager and Authentication Managers.