build(distro-wildfly) Update to Keycloak 2.5.1
MODIFY
distro/wildfly10/src/main/resources/overlay/standalone/configuration/standalone-apiman.xml
distro/wildfly10/src/main/resources/overlay/standalone/configuration/standalone-apiman.xml
</cache-container>
-->
<cache-container name="keycloak" jndi-name="infinispan/Keycloak">
- <local-cache name="realms"/>
- <local-cache name="users"/>
+ <local-cache name="realms">
+ <eviction max-entries="10000" strategy="LRU"/>
+ </local-cache>
+ <local-cache name="users">
+ <eviction max-entries="10000" strategy="LRU"/>
+ </local-cache>
<local-cache name="sessions"/>
<local-cache name="offlineSessions"/>
<local-cache name="loginFailures"/>
<local-cache name="work"/>
- <local-cache name="realmVersions">
- <transaction mode="BATCH" locking="PESSIMISTIC"/>
+ <local-cache name="authorization">
+ <eviction max-entries="100" strategy="LRU"/>
+ </local-cache>
+ <local-cache name="keys">
+ <eviction max-entries="1000" strategy="LRU"/>
+ <expiration max-idle="3600000"/>
</local-cache>
</cache-container>
<cache-container name="server" default-cache="default" module="org.wildfly.clustering.server">
<subsystem xmlns="urn:jboss:domain:weld:3.0"/>
<subsystem xmlns="urn:jboss:domain:keycloak-server:1.1">
<web-context>auth</web-context>
+ <providers>
+ <provider>classpath:${jboss.home.dir}/providers/*</provider>
+ </providers>
+ <master-realm-name>master</master-realm-name>
+ <scheduled-task-interval>900</scheduled-task-interval>
+ <theme>
+ <staticMaxAge>2592000</staticMaxAge>
+ <cacheThemes>true</cacheThemes>
+ <cacheTemplates>true</cacheTemplates>
+ <dir>${jboss.home.dir}/themes</dir>
+ <welcomeTheme>apiman</welcomeTheme>
+ </theme>
+ <spi name="eventsStore">
+ <default-provider>jpa</default-provider>
+ <provider name="jpa" enabled="true">
+ <properties>
+ <property name="exclude-events" value="[&quot;REFRESH_TOKEN&quot;]"/>
+ </properties>
+ </provider>
+ </spi>
+ <spi name="realm">
+ <default-provider>jpa</default-provider>
+ </spi>
+ <spi name="user">
+ <default-provider>jpa</default-provider>
+ </spi>
+ <spi name="userFederatedStorage">
+ <default-provider>jpa</default-provider>
+ </spi>
+ <spi name="userCache">
+ <provider name="default" enabled="true"/>
+ </spi>
+ <spi name="userSessionPersister">
+ <default-provider>jpa</default-provider>
+ </spi>
+ <spi name="authorizationPersister">
+ <default-provider>jpa</default-provider>
+ </spi>
+ <spi name="timer">
+ <default-provider>basic</default-provider>
+ </spi>
+ <spi name="connectionsHttpClient">
+ <provider name="default" enabled="true"/>
+ </spi>
+ <spi name="connectionsJpa">
+ <provider name="default" enabled="true">
+ <properties>
+ <property name="dataSource" value="java:jboss/datasources/KeycloakDS"/>
+ <property name="initializeEmpty" value="true"/>
+ <property name="migrationStrategy" value="update"/>
+ <property name="migrationExport" value="${jboss.home.dir}/keycloak-database-update.sql"/>
+ </properties>
+ </provider>
+ </spi>
+ <spi name="realmCache">
+ <provider name="default" enabled="true"/>
+ </spi>
+ <spi name="connectionsInfinispan">
+ <default-provider>default</default-provider>
+ <provider name="default" enabled="true">
+ <properties>
+ <property name="cacheContainer" value="java:comp/env/infinispan/Keycloak"/>
+ </properties>
+ </provider>
+ </spi>
+ <spi name="jta-lookup">
+ <default-provider>${keycloak.jta.lookup.provider:jboss}</default-provider>
+ <provider name="jboss" enabled="true"/>
+ </spi>
+ <spi name="publicKeyStorage">
+ <provider name="infinispan" enabled="true">
+ <properties>
+ <property name="minTimeBetweenRequests" value="10"/>
+ </properties>
+ </provider>
+ </spi>
</subsystem>
<subsystem xmlns="urn:jboss:domain:keycloak:1.1">
<realm name="apiman">

MODIFY
distro/wildfly9/src/main/assembly/overlay.xml
distro/wildfly9/src/main/assembly/overlay.xml
<exclude>**/aesh/**</exclude>
</excludes>
</fileSet>
+ <fileSet>
+ <directory>target/keycloak/themes</directory>
+ <outputDirectory>themes</outputDirectory>
+ <filtered>false</filtered>
+ <directoryMode>0755</directoryMode>
+ <fileMode>0755</fileMode>
+ </fileSet>
</fileSets>
</assembly>

MODIFY
pom.xml
pom.xml
<version.org.jboss.spec.javax.transaction.jboss-transaction-api_1.2_spec>1.0.0.Final</version.org.jboss.spec.javax.transaction.jboss-transaction-api_1.2_spec>
<version.org.jboss.spec.javax.ws.jboss-jaxrs-api_2.0_spec>1.0.0.Final</version.org.jboss.spec.javax.ws.jboss-jaxrs-api_2.0_spec>
<version.org.jboss.weld.weld>2.3.3.Final</version.org.jboss.weld.weld>
- <version.org.keycloak>2.0.0.Final</version.org.keycloak>
+ <version.org.keycloak>2.5.1.Final</version.org.keycloak>
<version.org.mockito>1.9.5</version.org.mockito>
<version.org.mvel>2.2.7.Final</version.org.mvel>
<version.org.osgi>4.2.0</version.org.osgi>

build(distro-wildfly) Update to Keycloak 2.5.1