Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

Configuring Keycloak provider with SPI

$
0
0

I am trying to configure one of my providers factory (its ID is "phone-verification") with the following code :

@Overridepublic void init(Config.Scope config) {    String lifespan = config.get("lifespan");    logger.warn("Lifespan : " + lifespan);}

And I have my configuration done in standalone.xml with the following property :

<spi name="phoneVerification"><default-provider>phone-verification</default-provider><provider name="phone-verification" enabled="true"><properties><property name="lifespan" value="2592000"/></properties></provider></spi

However config.get("lifespan") always returns null. Is there any extra step or am I doing anything wrong ?

NOTE : I specified the config file with the /keycloak/bin/standalone.sh --server-config=standalone.xml.


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>