<div dir="ltr"><div>Thanks Bob, that might be the way to go. <br><br></div>Will definitely try it.<br><br><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 15, 2015 at 6:15 PM, Bob McWhirter <span dir="ltr">&lt;<a href="mailto:bmcwhirt@redhat.com" target="_blank">bmcwhirt@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Let me suggest the WildFly Swarm Keycloak Server.<div><br></div><div>We use it in testing secured Swarm apps.</div><div><br></div><div>It’s an executable .jar with maven coordinates, and can be executed with the maven-exec-plugin in your pre-integration-test phase, or you can use the wildfly-swarm-plugin to start/stop it.</div><div><br></div><div>See here for an example:</div><div><br></div><div><a href="https://github.com/wildfly-swarm/wildfly-swarm-examples/blob/master/ribbon-secured/test/pom.xml#L117-L140" target="_blank">https://github.com/wildfly-swarm/wildfly-swarm-examples/blob/master/ribbon-secured/test/pom.xml#L117-L140</a><br></div><div><br></div><div>We’ll document this better shortly.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-Bob</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 15, 2015 at 11:11 AM, Orestis Tsakiridis <span dir="ltr">&lt;<a href="mailto:orestis.tsakiridis@telestax.com" target="_blank">orestis.tsakiridis@telestax.com</a>&gt;</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>I see. <br><br>So, i&#39;ll need to have a separate working keycloak server available for testing. No workarounds. Did i got this right ?<br><br></div><br><div><br><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 15, 2015 at 6:00 PM, Bill Burke <span dir="ltr">&lt;<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
<br>
On 12/15/2015 10:54 AM, Orestis Tsakiridis wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; I try to build automated tests for a keycloak secured REST application.<br>
&gt; I plan to use arquilian as a test platform.<br>
&gt;<br>
&gt; Do i need to have a working keycloak server to be used in the tests ?<br>
&gt; Or is it possible to embed keycloak in the temporary deployment created<br>
&gt; by arquilian?<br>
&gt;<br>
<br>
</span>That&#39;s a real good point.  Not sure how we are tackling this.<br>
<span><br>
&gt; Btw, my endpoints don&#39;t use web.xml based security rules. I instead use<br>
&gt;<br>
&gt; RSATokenVerifier.verifyToken() to manually verify the token.<br>
&gt;<br>
&gt; Thus, i suppose that being able to manually create auth tokens from my<br>
&gt; test cases (and not relying on a keycloak server) would also work.<br>
&gt;<br>
<br>
</span>FYI, Keycloak client adapters do have a filter implementations now that<br>
you can use.<br>
<span><font color="#888888"><br>
<br>
--<br>
Bill Burke<br>
JBoss, a division of Red Hat<br>
<a href="http://bill.burkecentral.com" rel="noreferrer" target="_blank">http://bill.burkecentral.com</a><br>
_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
</font></span></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div></div>