Hi all,
I am migrating from Keycloak 14 to Keycloak 18.
I have a custom user SPI I was defining as the default user SPI in Keycloak 14.
<spi name="user">
<default-provider>my-user-spi</default-provider>
<provider name="my-user-spi" enabled="true"/>
</spi>
We now need to make it the default one with Quarkus…
Watching at this page https://github.com/keycloak/keycloak-community/blob/main/design/keycloak.x/configuration.md#configuring-a-default-provider, it seems I should use : kc.[sh|bat] build --spi-myspi-provider=<provider_id>
So I guess I should write kc.sh build --spi-user-provider=my-user-spi but by doing this, nothing changes. In “Server info/Providers”, I can see both jpa and my-user-spi but jpa is still the active one.
In the end, the only solution I found to make my SPI the active one is to disable the out-of-the-box one by adding the following line in keycloak.properties.
spi-user-jpa-enabled=false
Finally, it is not a bad thing as I don’t need the default SPI but what would the correct way to keep both SPI and define mine as the default one?
Francis Pérot