<div dir="ltr">Currently the user federation instances are not maintained by the Keycloak session so they&#39;re not always closed. This is not strictly a bug as it was intended to be like this. We&#39;ll probably improve this in the future and have instances managed by the Keycloak session so there&#39;s only one per session/request and it&#39;s closed when the session is closed. We&#39;re currently discussing how to do this. In the mean time enlistForClose should work.</div><div class="gmail_extra"><br><div class="gmail_quote">On 29 June 2016 at 23:21, Brian Watson <span dir="ltr">&lt;<a href="mailto:watson409@gmail.com" target="_blank">watson409@gmail.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">Would I be correct in thinking that I should call &quot;session.enlistForClose(provider)&quot; in the getInstance() method of my factory to ensure close() is called?<br></div>
<br>_______________________________________________<br>
keycloak-dev mailing list<br>
<a href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br></blockquote></div><br></div>