<div dir="ltr"><div>I see. <br><br>So, i'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 class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 15, 2015 at 6:00 PM, Bill Burke <span dir="ltr"><<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 12/15/2015 10:54 AM, Orestis Tsakiridis wrote:<br>
> Hello,<br>
><br>
> I try to build automated tests for a keycloak secured REST application.<br>
> I plan to use arquilian as a test platform.<br>
><br>
> Do i need to have a working keycloak server to be used in the tests ?<br>
> Or is it possible to embed keycloak in the temporary deployment created<br>
> by arquilian?<br>
><br>
<br>
</span>That's a real good point. Not sure how we are tackling this.<br>
<span class=""><br>
> Btw, my endpoints don't use web.xml based security rules. I instead use<br>
><br>
> RSATokenVerifier.verifyToken() to manually verify the token.<br>
><br>
> Thus, i suppose that being able to manually create auth tokens from my<br>
> test cases (and not relying on a keycloak server) would also work.<br>
><br>
<br>
</span>FYI, Keycloak client adapters do have a filter implementations now that<br>
you can use.<br>
<span class="HOEnZb"><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">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>