<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>We are planning to merge the UserFederationProvider and
UserProvider SPIs into a new User Storage SPI. I'm actually
working on that right now and will be posting something soon.<br>
</p>
<p>Is creating a provider expensive for you for your implementation?<br>
</p>
<br>
<div class="moz-cite-prefix">On 6/9/16 11:59 AM, Ariel Carrera
wrote:<br>
</div>
<blockquote
cite="mid:CAFzO_6crwKto0nU=1U7e2if8gRQ2OHnSCqUDk_N=CdUdgc884A@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Marek, Stian, Bill....
<div><br>
<div>
<div>I have developed a custom user federation provider. I
notice that Keycloak create several User Federation
Providers during a single authentication flow callin
KeycloakModelUtils.getFederationProviderInstance multiple
times...</div>
<div><br>
</div>
<div>To prevent create two or three user federation
providers per request, I need implement into my custom
Federation Provider a logic for search an instance of my
custom provider into the Keycloak session and if not
exists then create a new one. So... there would be better
do it into the method
KeycloakModelUtils.getFederationProviderInstance?</div>
<div><br>
</div>
<div>People that implements a custom user federation
providers... Do people need to create multiple instances
per request of the same provider?</div>
<div><br>
</div>
<div><br>
</div>
<div>By the way, I have extended the keycloak SPI to perform
use of infinispan cache when a custom user provider try to
validate a user or get some data from a user federation
provider during process. Maybe this could be useful to
other users... if you wants to add this spi, I can try to
prepare a pull request to you.<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks</div>
</div>
<div>
<div>-- <br>
</div>
<div class="gmail_signature"
data-smartmail="gmail_signature">Ariel Carrera</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
keycloak-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-dev">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a></pre>
</blockquote>
<br>
</body>
</html>