John Ahlroos 68ee5b755d
All checks were successful
Build & Release / release-library (push) Successful in 1m47s
Set version from env property
2025-06-27 17:25:34 +02:00
2025-06-27 12:16:40 +02:00
2025-06-27 12:16:40 +02:00
2025-06-27 12:16:40 +02:00
2025-06-27 17:25:34 +02:00
2025-06-27 12:16:40 +02:00
2025-06-27 12:16:40 +02:00
2025-06-27 12:16:40 +02:00
2025-06-27 12:16:40 +02:00
2025-06-27 09:31:56 +00:00
2025-06-27 17:14:25 +02:00
2025-06-27 12:16:40 +02:00
2025-06-27 12:16:40 +02:00

keycloak-webjar-provider

Keycloak Provider for serving static assets from Webjars

How to use Webjars in your theme

  1. Download the Webjar you need in your theme from the internet and place the JAR (and its dependencies) in the Keycloak /opt/keycloak/providers folder
  2. Easiest way to download is to use Gradle/Maven (See build.gradle composeProviders task in this project)
  3. In your Keycloak theme add a reference to the css and script files you want to include:
    //theme.properties
    styles=webjars/uikit/3.17.9/css/uikit.min.css
    scripts=webjars/htmx.org/1.9.2/dist/htmx.min.js
    
  4. These static assets will then automatically be loaded for your theme

How to build this provider

To use this provider in Keycloak run the following command:

Unix/Mac: ./gradlew jar Windows: gradlew.bat jar

The copy the jar from build/libs/ folder into your Keycloak /opt/keycloak/providers folder and restart Keycloak.

Description
Keycloak Provider for serving static assets from Webjars
Readme Apache-2.0 83 KiB
Languages
Java 100%