p2-inc / keycloak-events

Useful Keycloak event listener implementations and utilities.
https://phasetwo.io
Other
195 stars 36 forks source link

Problem with install #40

Closed SergioCea closed 1 year ago

SergioCea commented 1 year ago

Hello, I have problems when creating an event, I don't know how to do it or if I'm missing something.

I have compiled and installed the jars, but when I add "ext-event-script", in Events->Config it tells me that the provider was not found. I don't know if there's something missing to configure.

Thanks!

xgp commented 1 year ago

Please provide your complete setup and configuration and we can help you debug.

SergioCea commented 1 year ago

Hello xgp, What exactly do you need? I am new to keyloack and have little knowledge, the version I am using is 18.0.0, on a machine with Java 1.8.

The 2 jars I deploy are the following keycloak-events-0.21-SNAPSHOT.jar, keycloak-events-0.21-SNAPSHOT-shaded.jar. Is this necessary too original-keycloak-events-0.21-SNAPSHOT.jar?

When I add the event I get the following error "09:13:38,049 ERROR [org.keycloak.services] (default task-16) KC-SERVICES0083: Event listener 'ext-event-script' registered, but provider not found "

Thanks!

xgp commented 1 year ago

If you are new, I would recommend starting with our docker images.

The setup for these extensions is complex, and just putting the jar in the right place is just part of it. The jar version only works with the keycloak version where it is deployed in the docker image, and unless you're a paying customer, we only distribute the extension for the most recent version of keycloak (22.0.5). If you have to use another one, you're on your own.

Once you've tested with the latest docker image, you can reopen this issue with the exact steps you took to start keycloak and use the extension.