/spring-boot-iaa

A sample spring boot microservice with authentication and authorization using Keycloak

Primary LanguageJava

Spring Boot Microservice and Keycloak Integration

Keycloak - Authentication and Authorization

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.

Technology Stack

  • MySQL (docker image)
  • keycloak (docker image)
  • Spring Boot 2.2.5
  • thymeleaf

Prerequisites

  • MySQL (docker container)
  • keycloak (docker container)

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely: