When developing custom SPIs Keycloak does not pick them up when
deploying them as an extension. SPIs can be deployed as provider modules
instead. This commit adds support for testing extensions as provider
modules.
It makes use of the providers deployment from the Keycloak subsystem:
$ docker run --rm --entrypoint=cat quay.io/keycloak/keycloak:15.0.2 /opt/jboss/keycloak/standalone/configuration/standalone-ha.xml | grep -A 6 dom
ain:keycloak-server
<subsystem xmlns="urn:jboss:domain:keycloak-server:1.1">
<web-context>auth</web-context>
<providers>
<provider>
classpath:${jboss.home.dir}/providers/* <!--- THIS -->
</provider>
</providers>
This is basically the same as adding a module as a provider (see documentation here), but simply adds the jar to the classpath instead of using a module.
When developing custom SPIs Keycloak does not pick them up when deploying them as an extension. SPIs can be deployed as provider modules instead. This commit adds support for testing extensions as provider modules.
See this test as an example.
It makes use of the providers deployment from the Keycloak subsystem:
This is basically the same as adding a module as a provider (see documentation here), but simply adds the jar to the classpath instead of using a module.