Keycloak (https://www.keycloak.org), open source, Identity and Access Management tool built for modern applications. Applications needs some sort of user authentication and authorization mechanism to secure protected resources. Keycloak handles all of this automatically.
This example shows securing protected resources by integrating Keycloak's authentication with a spring-boot app.
##Use case The application show the lists of food. The lists are categorized according to employee and non-employee (vegetarian). Means, employees view special food items and accessible using login/password.
- MySQL (docker image)
- keycloak (docker image)
- Spring Boot 2.2.5
- thymeleaf
- MySQL (docker container)
- keycloak (docker container)
For further reference, please consider the following sections:
- Official Apache Maven documentation
- Spring Boot Maven Plugin Reference Guide
- Spring Web
- Spring Boot DevTools
- Thymeleaf
The following guides illustrate how to use some features concretely: