Skip to content

Latest commit

 

History

History
40 lines (22 loc) · 1.36 KB

README.md

File metadata and controls

40 lines (22 loc) · 1.36 KB

KeyCloak Delay Authentication Flow

Plugin to delay authentication of users until they get created in Keycloak and added in 3scale by RHMI operator.

System Requirements

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.

Build and Deploy

Build the plugin

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.

Install Keycloak locally using Docker Compose

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:

  1. Open the terminal and navigate to the root of the project.
  2. Run docker-compose up.
  3. 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.
  4. Admin credentials for Keycloak are set in the docker-compose.yaml file KEYCLOAK_USER=admin and KEYCLOAK_PASSWORD=admin.

Deploy the plugin

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.