DZone

As we have seen in a previous post, the username and password for our Spring application was configured through environmental variables. This is OK for prototype purposes, but in real life scenarios, we have to provide another way to make the users eligible to log into the application.

To do so, we use the UserDetailsService Interface.

Source: DZone