I'm currently working on integrating a custom SPI (Service Provider Interface) into my Keycloak server, but I'm having trouble figuring out where to place my custom .jar file within the latest version of the Keycloak Docker image (v24.0.0).
I've thoroughly searched the documentation and various online resources, but most of the information seems to be outdated or specific to older versions of Keycloak. Additionally, the Docker images provided on Docker Hub for JBoss Keycloak are no longer maintained.
Could someone please provide guidance on where I should place my custom .jar file and the associated META-INF/services/org.keycloak.provider.Spi
file within the latest version of the Keycloak Docker image?
I appreciate any help or pointers to relevant documentation that I may have missed.
Thank you!
According to the docs the jar should be placed to the providers
directory (e.g. /opt/keycloak/providers
).
Registering provider implementations
Providers are registered with the server by simply copying the JAR file to the
providers
directory.
https://www.keycloak.org/docs/latest/server_development/#registering-provider-implementations