Martin Bartoš

Quarkus/Quarkiverse Extensions

Easy way how to add Quarkus extensions to your Keycloak deployment

20
Tooling Apache-2.0

Keycloak-extended GitHub Release CI Status

Keycloak Quarkus Extensions

Easily add Quarkus/Quarkiverse extension to your Keycloak distribution.

The principle is quite basic as it mimics the process of building Keycloak distribution for the main Keycloak. It will just include all Quarkus/Quarkiverse extensions in the distribution.

Add Quarkus/Quarkiverse extensions to your Keycloak deployment

Usage: ./kc-extension.sh <command>

Options:
  -h, --help                Display this help message.

Commands:
  add    <extension>        Add Quarkus/Quarkiverse extension.
  add    <GAV>              Manually add Quarkiverse or your own extension to the project by specifying <groupId:artifactId:version>.
  build                     Rebuild the Keycloak distribution with custom extensions.
  list                      Display all available extensions.
  start-dev                 Execute the generated Keycloak distribution in development mode.
  image                     Build extended Keycloak builder image with your custom extensions.

For more advanced use-cases, see the Configuration guides.

Supported Keycloak versions

Keycloak Quarkus
26.6.x 3.33.1
26.5.x 3.27.2
26.4.x 3.27.2
26.3.x 3.20.5
26.2.x 3.20.5

Your first extended Keycloak

How to add your first extensions to your Keycloak deployment? Follow this simple guidelines:

# Add official Quarkus extension
./kc-extension.sh add <extension-name>

# Add Quarkiverse extension by specifying the whole GAV
./kc-extension.sh add <groupId:artifactId:version>

# Add the necessary Quarkus properties in 'quarkus.properties' file

# Build the extended Keycloak distribution
./kc-extension.sh build

# Try it out by starting the extended distribution in dev mode
./kc-extension.sh start-dev

Now, you should be able to access extended nightly Keycloak instance at localhost:8080.

The build command generates extended Keycloak distribution as files:

  • keycloak-extended-26.6.0.tar.gz
  • keycloak-extended-26.6.0.zip

For more options how to build the distribution, check the Advanced configuration guide or execute:

./kc-extension.sh build --help

Container

Do you want to use the extended Keycloak as a container image? Follow instructions in the Container guide.

Examples

For more examples how to configure the tool or add Quarkus/Quarkiverse extensions, see the Examples.

Indexed automatically from public sources. Report incorrect data or request removal.