Hi Rodrigo, thanks for sharing these

On Fri, May 1, 2015 at 5:27 PM, Rodrigo Del Canto <delkant@gmail.com> wrote:
I finally solved my problem, these are the steps:

1. Download and install wildfly 8.2
2. Get keycloak war distribution and install it: http://docs.jboss.org/keycloak/docs/1.2.0.Beta1/userguide/html/server-installation.html#WAR_distribution_installation
3. Install JBoss/Wildfly Adapter for keycloak: http://docs.jboss.org/keycloak/docs/1.2.0.Beta1/userguide/html/ch08.html#jboss-adapter
4. Get Aerogear UPS 1.0.3
5. Get aerogear the realm for keyclock and when you are creating a new realm upload it: https://raw.githubusercontent.com/aerogear/aerogear-unifiedpush-server/1.0.3/servers/auth-server/src/main/webapp/WEB-INF/ups-realm.json
6. Modify the persistence.xml inside the  unifiedpush-server-wildfly.war/WEB-INF/lib/unifiedpush-model-jpa-1.0.3.jar change this line:

<property name="hibernate.hbm2ddl.auto" value="validate"/>

for

<property name="hibernate.hbm2ddl.auto" value="update"/>

7. create a datasource for both Aerogear UPS and Keycloak:

unifiedpush-ds.xml:

<?xml version="1.0" encoding="UTF-8"?>

<datasources xmlns="http://www.jboss.org/ironjacamar/schema">

  <datasource jndi-name="java:jboss/datasources/UnifiedPushDS" pool-name="UnifiedPushDS" enabled="true" use-java-context="true">

        <connection-url>jdbc:mysql://host:3306/unifiedpush?useUnicode=true&amp;characterEncoding=UTF-8</connection-url>

        <driver>com.mysql</driver>

        <security>

            <user-name>your-username</user-name>

            <password>your-secret</password>

        </security>

  </datasource>

  <datasource jndi-name="java:jboss/datasources/KeycloakDS"

                  pool-name="KeycloakDS" enabled="true" use-java-context="true">

        <connection-url>jdbc:mysql://host:3306/keycloak?useUnicode=true&amp;characterEncoding=UTF-8</connection-url>

        <driver>com.mysql</driver>

        <security>

            <user-name>your-username</user-name>

            <password>your-secret</password>

        </security>

  </datasource>

</datasources>

8. start your server 


On Fri, May 1, 2015 at 10:04 AM, Rodrigo Del Canto <delkant@gmail.com> wrote:
Hello!

I would like to know... Is it possible to run a UPS war using a custom Keycloak server in Wildfly ??

I have tried to deploy the unifiedpush-server-wildfly.war on a Wildfly 8.2 with Keycloak on it, but I'm getting some dependencies errors saying that unifiedpush-auth-server.war 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.

Thanks a lot!

Rodrigo


_______________________________________________
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users




--
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf