How to add a new extension in keycloak

Hi I am trying to add a maven project as an extension to keycloak. I have added this extension to provider.cli and I want it to execute as soon as keycloak is up and running? How can i do that?

Hi,
remember to put the file META-INF/services/org.keycloak.services.resource.RealmResourceProviderFactory (the name is the provider you are extending) with inside the fqn of your implementation
Then you can put the jar in the providers folder.

1 Like