How to integrate Spring Boot 3, Spring Security, and Keycloak

2 · Red Hat · July 24, 2023, 7:38 a.m.
Quite some time ago, Keycloak deprecated its adapters, including OpenID connect for Java adapters. For Spring Boot developers, this means we need to use Spring Security for OpenID and OAuth2 connectivity with Keycloak instead of relying on Keycloak adapters. In this article, we'll create a sample Java application on top of Spring Boot 3 and protect it by using Spring Security and Keycloak, without having to use Keycloak adapters. Install Keycloak First, we need to install Keycloak to our system....