Running Keycloak using Java
Keycloak is a Java-based application and can be started from any compute instance as a standard Java runtime application:
- Download the latest server distribution for Keycloak from the https://www.keycloak.org/downloads website.
Important note
Keycloak is available in two distributions. One uses Wildfly, which is deprecated and will be discontinued in the future. The other uses Quarkus and will be the one used in this book.
- Click on the
ZIP (sha1)
link of the Keycloak server distribution powered by Quarkus to download the binaries:
Figure 9.3 – Downloading Keycloak
- Extract the contents of the file. Change into that directory (
cd keycloak-19.0.3
):
Figure 9.4 – Changing into the Keycloak directory
Keycloak will prompt you to create the initial administrator on your first visit to the welcome page. Alternatively, that can be configured using environment...