Plugin to delay authentication of users until they get created in Keycloak and added in 3scale by RHMI operator.
You need to have Keycloak 9.0.2 running.
All you need to build this project is Java 8.0 (Java SDK 1.8) or later and Maven 3.1.1 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:8080/ 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-test
andKEYCLOAK_PASSWORD=admin-test
.
To deploy the plugin you need to copy the .jar
file to /opt/jboss/keycloak/providers
in Keycloak.
PS.: this directory is mapped in the docker-compose.yaml file available in the repo.