How to run Keycloak server (17.x) embedded into a Spring Boot application Example uses article on Baeldung as a reference and adapts it to the latest version of Keycloak. PostgreSQL is used as a DB driver for Keycloak. For further reference, please consider the following sections: article on Baeldung Embedded Keycloak springboot application, upgrading keycloak from 12 to 14 embedded-spring-boot-keycloak-server by Thomas Darimont