[Aerogear-users] UPS with an external Keycloak server
Rodrigo Del Canto
delkant at gmail.com
Fri May 1 11:27:18 EDT 2015
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&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&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 at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150501/2e1ee46a/attachment.html
More information about the Aerogear-users
mailing list