How easy is user management and authentication?
- Kieran Mangan
- Jan 4, 2020
- 1 min read
It's arguably the most important part of a system, so how hard is it to create a secure application to create users and allow login?
Fortunately, modern microservice frameworks like Spring Boot make it quite simple to get an MVP up an running. This example using Spring Security 5 and Spring Boot 2 took just a few hours to get set up, and as you can see, has minimal code and config beyond what Spring provides behind the scenes.
This would make a good proof of concept or demo app, and is a sound foundation for building a large scale user management and authentication system, if Spring is your technology of choice.
As well as Spring, we use:
H2 in memory database for testing
Liquibase to create a 'users' table and populate Spring's 'authorities' table
MockMvc for easy integration testing
Feel free to try this out, fork and use as a base for your own awesome authentication app. Happy coding! 🚀




Comments