[Aerogear-users] UPS with an external Keycloak server

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Aerogear-users] UPS with an external Keycloak server

Rodrigo Del Canto
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
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users
Reply | Threaded
Open this post in threaded view
|

Re: [Aerogear-users] UPS with an external Keycloak server

Rodrigo Del Canto
I finally solved my problem, these are the steps:

1. Download and install wildfly 8.2
4. Get Aerogear UPS 1.0.3
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 <[hidden email]> 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
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users
Reply | Threaded
Open this post in threaded view
|

Re: [Aerogear-users] UPS with an external Keycloak server

Matthias Wessendorf
Hi Rodrigo, thanks for sharing these

On Fri, May 1, 2015 at 5:27 PM, Rodrigo Del Canto <[hidden email]> wrote:
I finally solved my problem, these are the steps:

1. Download and install wildfly 8.2
4. Get Aerogear UPS 1.0.3
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 <[hidden email]> 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
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users




--

_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users