Skip to content

Project template for a custom Keycloak distribution.

License

Notifications You must be signed in to change notification settings

k-int/gors-hub-keycloak

 
 

Repository files navigation

Keycloak-Custom

This project creates a custom Keycloak server based on Keycloak.X. 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 Keycloak
  • container : creates the custom docker image
  • docker-compose : provides a sample for launching the custom docker image
  • extensions : provides samples for Keycloak SPI implementations
  • server : provides a Keycloak installation for local development & testing
  • themes : provides samples for custom themes

Please see the tutorial building a custom Keycloak container image for the details of this project.

Reshare-hub specific keycloak with plugins for LMS authn and other config

In development, after checkout create a

Build with ./mvnw clean install

Push to nexus with docker push NAME[:TAG] docker image push docker.libsdev.k-int.com/reshare/hub-authn:1.1.0-SNAPSHOT docker image push docker.libsdev.k-int.com/reshare/hub-authn --all-tags

IF you add a new custom authentication provider and want that provider bundled into the docker image, don't forget to edit container/pom.xml and add your artefact ID to includeArtifactIds AND add your new authenticator to the list of dependencies in the container project.

https://github.com/adorsys/keycloak-config-cli/blob/main/src/main/java/de/adorsys/keycloak/config/provider/KeycloakProvider.java https://www.keycloak.org/docs/latest/server_development/#_user-storage-spi

HOW TO TURN OFF THE USER CACHE - which should prevent the lowercasing

https://stackoverflow.com/questions/69553369/how-to-access-the-original-case-sensitive-username-input-in-custom-user-storage

IF you add dependencies on external libraries you will need to have them added to the providers directory explicitly as they won't be loadable through the normal route You can do this in container/pom.xml under the maven-dependency-plugin plugin

Sycn with upstream

git@github.com:inventage/keycloak-custom.git git fetch upstream git merge upstream/main

About

Project template for a custom Keycloak distribution.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 57.5%
  • Shell 17.3%
  • CSS 15.8%
  • FreeMarker 8.0%
  • Dockerfile 1.4%