I have a keycloak extension in which I am overriding a bunch of provider factories (e.g EmailSenderProviderFactory, EventListenerProviderFactory,…etc). To do so, I simply add my class name inside a file that bears the providers name under /META-INF/services. I deploy everything as an ear file inside the /deploy folder and everything works ok.
When I create a custom Spi with my own providers, it is not picked up by keycloak (or wildfly) and I always get null when trying to load my provider using
session.getProvider(MyOwnProvider.class), knowing that I followed the steps in docs here https://www.keycloak.org/docs/latest/server_development/#implementing-an-spi
in short I created an SPI e.g MyOwnSPI, and added a file name org.keycloak.provider.Spi under META-INF/services in which I put my SPI qualified name (with packages). I also tried playing with the standalone.xml spi and providers sections, still getting null.
am I missing on some step ?
Thanks in advance.