<p dir="ltr">Marek,<br>
Thanks for this clarification and all your help in this forum to my other questions!</p>
<p dir="ltr">You guys rock!</p>
<p dir="ltr">/Hristo Stoyanov</p>
<div class="gmail_quote">On Mar 31, 2016 2:38 AM, "Marek Posolda" <<a href="mailto:mposolda@redhat.com">mposolda@redhat.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>It's supposed to be and we even
internally using it in some concurrency test. <br>
<br>
It's using Apache HTTP client under the hood, which itself is
thread-safe and is using connection pooling. In case you need, you
can configure more fine-grained details (like connection pool size
etc) by pass the custom resteasyClient to Keycloak object.<br>
<br>
However when I looked a bit more into sources now, I can see that
there are some potential concurrency issues in TokenManager class,
which is used internally by admin client. Created JIRA
<a href="https://issues.jboss.org/browse/KEYCLOAK-2731" target="_blank">https://issues.jboss.org/browse/KEYCLOAK-2731</a> for it. It's not too
bad IMO, but note that you can possibly see situation when more
concurrent threads are trying to refresh the same access token at
the same time.<br>
<br>
Marek<br>
<br>
<br>
On 31/03/16 01:37, Hristo Stoyanov wrote:<br>
</div>
<blockquote type="cite">
<p dir="ltr">Is org.Keycloak.admin.client.Keycloak threadsafe? I
intend to use it as a single admin client for the entire app ...</p>
<p dir="ltr">/Hristo Stoyanov</p>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
keycloak-user mailing list
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
</div>
</blockquote></div>