Plugin to delay authentication of users until they get created in Keycloak and added in 3scale by RHMI operator.
You need to have Keycloak 24.0+ running.
All you need to build this project is Java 17 (Java SDK 17) or later and Maven 3.9 or later.
To build the plugin you need to first intall the dependencies:
$ mvn install
and then gerenate the .jar
file:
$ mvn package
Once the plugin is built you should be able to find the .jar file in ./plugins/<projectname>.jar
.
There is a docker-compose.yaml
file available in the root of the project that can be used to install Keycloak locally with Maria DB and deploy the plugin.
Steps to install Keycloak locally:
- Open the terminal and navigate to the root of the project.
- Run
docker-compose up
. - When keycloak finishes the install open http://0.0.0.0:8180/ in a browser and it you should be able to see keycloak login screen.
- Admin credentials for Keycloak are set in the docker-compose.yaml file
KEYCLOAK_USER=admin
andKEYCLOAK_PASSWORD=admin
.
To deploy the plugin you need to copy the .jar
file to /opt/keycloak/providers/
in Keycloak.
PS.: this directory is mapped in the docker-compose.yaml file available in the repo.