[keycloak-user] Custom SPI does not appear in list

Stian Thorgersen sthorger at redhat.com
Mon Oct 14 05:00:41 EDT 2019


So that's a custom provider for an existing SPI, not a custom SPI.

For custom providers standalone/deployments is definitely the way to go..

On Mon, 14 Oct 2019, 10:29 John Norris, <johnnorris-10 at outlook.com> wrote:

> Hi Stian,
> so rather than do it "old school" as the manual says, I was told to use
>
> <spi name="eventsListener">
>     <provider name="mqtt" enabled="true">
>         <properties>
>             <property name="serverUri" value="tcp://127.0.0.1:1883"/>
>             <property name="username" value="mqtt_user"/>
>             <property name="password" value="mqtt_password"/>
>             <property name="topic" value="my_topic"/>
>         </properties>
>     </provider>
> </spi>
>
> with the jar copied to standalone/deployments.
>
> This does not cause keycloak to crash on startup. It does cause errors but I think that is a jar problem.
>
> Regards,
>
> John
>
>
> ------ Original Message ------
> From: "Stian Thorgersen" <sthorger at redhat.com>
> Sent: 07/10/2019 08:46:26
> Subject: Re: Re[2]: [keycloak-user] Custom SPI does not appear in list
>
> module deployment like you've done is what I referred to by the old school
> deployment approach. So what you're doing looks about right.
>
> Do you only get the NPE below when you include your module? Is your
> standalone.xml in sync with the latest release or perhaps it's missing
> something?
>
>
>>


More information about the keycloak-user mailing list