<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"><<a href="mailto:delkant@gmail.com" target="_blank">delkant@gmail.com</a>></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><property name="hibernate.hbm2ddl.auto" value="validate"/></p><p>for</p><p>
</p><p><property name="hibernate.hbm2ddl.auto" value="update"/></p><p>7. create a datasource for both Aerogear UPS and Keycloak:</p><p>
</p><p>unifiedpush-ds.xml:</p><p><?xml version="1.0" encoding="UTF-8"?></p><p><datasources xmlns="<a href="http://www.jboss.org/ironjacamar/schema" target="_blank">http://www.jboss.org/ironjacamar/schema</a>"><br></p><p> <datasource jndi-name="java:jboss/datasources/UnifiedPushDS" pool-name="UnifiedPushDS" enabled="true" use-java-context="true"></p><p> <connection-url>jdbc:mysql://host:3306/unifiedpush?useUnicode=true&amp;characterEncoding=UTF-8</connection-url></p><p> <driver>com.mysql</driver></p><p> <security></p><p> <user-name>your-username</user-name></p><p> <password>your-secret</password></p><p> </security></p><p> </datasource></p><p> <datasource jndi-name="java:jboss/datasources/KeycloakDS"</p><p> pool-name="KeycloakDS" enabled="true" use-java-context="true"></p><p> <connection-url>jdbc:mysql://host:3306/keycloak?useUnicode=true&amp;characterEncoding=UTF-8</connection-url></p><p> <driver>com.mysql</driver></p><p> <security></p><p> <user-name>your-username</user-name></p><p> <password>your-secret</password></p><p> </security></p><p> </datasource></p><p>
</p><p></datasources></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"><<a href="mailto:delkant@gmail.com" target="_blank">delkant@gmail.com</a>></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'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'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>