This project is based on the custom Keycloak template. It is structured as a multi-module Maven build and contains the following top-level modules:
config
: provides the build stage configuration and the setup of Keycloakcontainer
: creates the custom docker imagedocker-compose
: provides a sample for launching the custom docker imageextensions
: provides samples for Keycloak SPI implementationshelm
: provides a sample for installing the custom container image in Kubernetes using the Codecentric Helm Chartserver
: provides a Keycloak installation for local development & testingthemes
: provides samples for custom themes
Please see the tutorials building a custom Keycloak container image and Configuring Passkey for the details of this project.
Server admin guide: https://www.keycloak.org/docs/latest/server_admin
# set up
./mvnw clean package
# run postgres
docker compose -f ./docker-compose/postgres/docker-compose.yml up -d
# run keycloak
./server/run-keycloak.sh > debug.log
# in a different tab, set up keycloak
./server/run-keycloak-setup.sh
Then test it by going to the URL: https://www.keycloak.org/app/#url=http://localhost:8080&realm=passkey&client=passkey
Or http://localhost:8080/realms/passkey/account
In order to use this Authorization Server in other places, building the image is necessary.
./mvnw clean install -DmultiArchBuild