Yeah, sounds reasonable to me.<div><br></div><div><span></span><br><br>On Tuesday, May 6, 2014, Corinne Krych &lt;<a href="mailto:corinnekrych@gmail.com">corinnekrych@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Good work!<br>
<br>
I wonder... It might be good to use the same integration for our OAuth2 server side demo in [1]<br>
Here I used a KC server with realm.json configuration. Would it be possible/worth it to replace all the configuration with plain Java?<br>
<br>
++<br>
Corinne.<br>
[1]  <a href="https://github.com/aerogear/aerogear-integration-tests-server/pull/4" target="_blank">https://github.com/aerogear/aerogear-integration-tests-server/pull/4</a><br>
<br>
On 06 May 2014, at 11:49, Matthias Wessendorf &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;matzew@apache.org&#39;)">matzew@apache.org</a>&gt; wrote:<br>
<br>
&gt; Hello folks!<br>
&gt;<br>
&gt; Bill Burk was helping on the Keycloak front and besides fixing related items on the Keycloak server, he also created an example that we can use as a template for the actual integration. See [1]<br>
&gt;<br>
&gt; In the past, Bruno and I did integrate w/ an external Keycloak server (see [2]), and we did include the keycloak.json file (See [3]). Thanks to Bill&#39;s work on Keycloak, the &#39;protected app&#39; no longer needs that, see [4].<br>

&gt; Also there is no more the need to customize the Keycloak Rest Application (Stian and I did look into that as well).<br>
&gt;<br>
&gt;<br>
&gt; Good news: This means the UPS can stay as it is -&gt; no need to change internals (e.g. the &#39;bundle all in one WAR file&#39; did force us to change our &#39;/rest&#39; URLs, as Keycloak uses them, see [5]).<br>
&gt;<br>
&gt; Inside of our &#39;modular&#39; Keycloak branch (see [2] again), we can apply the work from Bill:<br>
&gt; * our current &#39;server&#39; module will use a listener similar to [4]<br>
&gt; * create a &quot;ups-auth&quot; module similar to [6]<br>
&gt;<br>
&gt; On the &#39;ups-auth module&#39; there is one area where we need to have some future improvement:<br>
&gt; * testrealm.json -&gt; needs to be in Java code, due to the URL being hard-coded in there (we need to resolve the URL of the host, running the bits). But, IMO for now that should be good enough.<br>
&gt;<br>
&gt; Bruno did offer to help out on the Keycloak integration, so that I can go back to the analytics and mertrics feature. Thanks abstractj!! &lt;3<br>
&gt;<br>
&gt; Greetings,<br>
&gt; Matthias<br>
&gt;<br>
&gt; [1] <a href="https://github.com/keycloak/keycloak/tree/master/project-integrations/aerogear-ups" target="_blank">https://github.com/keycloak/keycloak/tree/master/project-integrations/aerogear-ups</a><br>
&gt; [2] <a href="https://github.com/aerogear/aerogear-unifiedpush-server/tree/keycloak-modular" target="_blank">https://github.com/aerogear/aerogear-unifiedpush-server/tree/keycloak-modular</a><br>
&gt; [3] <a href="https://github.com/aerogear/aerogear-unifiedpush-server/blob/keycloak-modular/server/src/main/webapp/WEB-INF/keycloak.json" target="_blank">https://github.com/aerogear/aerogear-unifiedpush-server/blob/keycloak-modular/server/src/main/webapp/WEB-INF/keycloak.json</a><br>

&gt; [4] <a href="https://github.com/keycloak/keycloak/blob/master/project-integrations/aerogear-ups/app/src/main/java/org/keycloak/example/BootstrapListener.java" target="_blank">https://github.com/keycloak/keycloak/blob/master/project-integrations/aerogear-ups/app/src/main/java/org/keycloak/example/BootstrapListener.java</a><br>

&gt; [5] <a href="https://github.com/aerogear/aerogear-unifiedpush-server/tree/keycloak-embedded" target="_blank">https://github.com/aerogear/aerogear-unifiedpush-server/tree/keycloak-embedded</a><br>
&gt; [6] <a href="https://github.com/keycloak/keycloak/tree/master/project-integrations/aerogear-ups/auth-server" target="_blank">https://github.com/keycloak/keycloak/tree/master/project-integrations/aerogear-ups/auth-server</a><br>

&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Matthias Wessendorf<br>
&gt;<br>
&gt; blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
&gt; sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
&gt; twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><br>
&gt; _______________________________________________<br>
&gt; aerogear-dev mailing list<br>
&gt; <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;aerogear-dev@lists.jboss.org&#39;)">aerogear-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
<br>
<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;aerogear-dev@lists.jboss.org&#39;)">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</blockquote></div><br><br>-- <br>Sent from Gmail Mobile<br>