<div dir="ltr">Hi Rodrigo, thanks for sharing these</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 1, 2015 at 5:27 PM, Rodrigo Del Canto <span dir="ltr">&lt;<a href="mailto:delkant@gmail.com" target="_blank">delkant@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I finally solved my problem, these are the steps:<div><br></div><div>1. Download and install wildfly 8.2</div><div>2. Get keycloak war distribution and install it: <a href="http://docs.jboss.org/keycloak/docs/1.2.0.Beta1/userguide/html/server-installation.html#WAR_distribution_installation" target="_blank">http://docs.jboss.org/keycloak/docs/1.2.0.Beta1/userguide/html/server-installation.html#WAR_distribution_installation</a></div><div>3. Install JBoss/Wildfly Adapter for keycloak: <a href="http://docs.jboss.org/keycloak/docs/1.2.0.Beta1/userguide/html/ch08.html#jboss-adapter" target="_blank">http://docs.jboss.org/keycloak/docs/1.2.0.Beta1/userguide/html/ch08.html#jboss-adapter</a><br></div><div>4. Get Aerogear UPS 1.0.3</div><div>5. Get aerogear the realm for keyclock and when you are creating a new realm upload it: <a href="https://raw.githubusercontent.com/aerogear/aerogear-unifiedpush-server/1.0.3/servers/auth-server/src/main/webapp/WEB-INF/ups-realm.json" target="_blank">https://raw.githubusercontent.com/aerogear/aerogear-unifiedpush-server/1.0.3/servers/auth-server/src/main/webapp/WEB-INF/ups-realm.json</a></div><div>6. Modify the persistence.xml inside the <span style="font-size:12.8000001907349px"> </span><b><span style="font-size:12.8000001907349px">unifiedpush-server-wildfly.war/WEB-INF/lib/</span>unifiedpush-model-jpa-1.0.3.jar </b>change this line:</div><div>







<p>&lt;property name=&quot;hibernate.hbm2ddl.auto&quot; value=&quot;validate&quot;/&gt;</p><p>for</p><p>







</p><p>&lt;property name=&quot;hibernate.hbm2ddl.auto&quot; value=&quot;update&quot;/&gt;</p><p>7. create a datasource for both Aerogear UPS and Keycloak:</p><p>







</p><p>unifiedpush-ds.xml:</p><p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</p><p>&lt;datasources xmlns=&quot;<a href="http://www.jboss.org/ironjacamar/schema" target="_blank">http://www.jboss.org/ironjacamar/schema</a>&quot;&gt;<br></p><p>  &lt;datasource jndi-name=&quot;java:jboss/datasources/UnifiedPushDS&quot; pool-name=&quot;UnifiedPushDS&quot; enabled=&quot;true&quot; use-java-context=&quot;true&quot;&gt;</p><p>        &lt;connection-url&gt;jdbc:mysql://host:3306/unifiedpush?useUnicode=true&amp;amp;characterEncoding=UTF-8&lt;/connection-url&gt;</p><p>        &lt;driver&gt;com.mysql&lt;/driver&gt;</p><p>        &lt;security&gt;</p><p>            &lt;user-name&gt;your-username&lt;/user-name&gt;</p><p>            &lt;password&gt;your-secret&lt;/password&gt;</p><p>        &lt;/security&gt;</p><p>  &lt;/datasource&gt;</p><p>  &lt;datasource jndi-name=&quot;java:jboss/datasources/KeycloakDS&quot;</p><p>                  pool-name=&quot;KeycloakDS&quot; enabled=&quot;true&quot; use-java-context=&quot;true&quot;&gt;</p><p>        &lt;connection-url&gt;jdbc:mysql://host:3306/keycloak?useUnicode=true&amp;amp;characterEncoding=UTF-8&lt;/connection-url&gt;</p><p>        &lt;driver&gt;com.mysql&lt;/driver&gt;</p><p>        &lt;security&gt;</p><p>            &lt;user-name&gt;your-username&lt;/user-name&gt;</p><p>            &lt;password&gt;your-secret&lt;/password&gt;</p><p>        &lt;/security&gt;</p><p>  &lt;/datasource&gt;</p><p>










































</p><p>&lt;/datasources&gt;</p><p>8. start your server </p></div>







</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 1, 2015 at 10:04 AM, Rodrigo Del Canto <span dir="ltr">&lt;<a href="mailto:delkant@gmail.com" target="_blank">delkant@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">Hello!</div><div class="gmail_extra"><br></div><div class="gmail_extra">I would like to know... Is it possible to run a UPS war using a custom Keycloak server in Wildfly ??</div><div class="gmail_extra"><br></div><div class="gmail_extra">I have tried to deploy the <b>unifiedpush-server-wildfly.war </b>on a Wildfly 8.2 with Keycloak on it, but I&#39;m getting some dependencies errors saying that <b>unifiedpush-auth-server.war </b>is required and not installed, can I change this? I would like to make the configurations I need to the Keycloak instance I&#39;m running already.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks a lot!</div><span><font color="#888888"><div class="gmail_extra"><br></div><div class="gmail_extra">Rodrigo</div>















</font></span></div>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a></div>
</div>