I\'m needing to do some custom things when a user tries to log in depending on their username but these things need to happen before the authentication process. Here\'s wha
The simplest was to hook into the authentication process is to provide your own AuthenticationProvider. There are only two methods to implement. In authenticate() you can do all of your custom stuff.
To configure your provider into the framework do something like: