8000 hook0/keycloak-theme at master · jbwill36/hook0 · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
 
 

keycloak-theme

README.md

Hook0 Example Keycloak theme

Build the theme extension

mvn package

Theme Development Workflow

Build this theme .jar file with:

# build the theme and wrap it in a .jar file
mvn package

# move theme to /tmp/theme/ folder for futur use by keycloak
mkdir -p /tmp/theme && cp -v target/*.jar /tmp/theme/

Then start Keycloak IAM (in single-node mode) locally through docker and use the host /tmp/theme folder as Keycloak deployment directory using the watch.sh script

./watch.sh

Connect to Keycloak console http://localhost:8080, click on Themes tab, and select hook0 in front of Login Theme.

More :

If you want to activate the login, email or other theme, open :

src/main/resources/META-INF/keycloak-themes.json

change the type to put the themes you want :

{
    "themes": [{
        "name" : "hook0",
        "types": [ "login", "email" ]
    }]
}

Resources

0