<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 09/12/15 19:33, Jorge M. wrote:<br>
    </div>
    <blockquote
cite="mid:CAHEpHRL1tuZbp-DU-aQeQt9GZ1JyRhJUdw3L0H2Ca_Qj1wnLfw@mail.gmail.com"
      type="cite">
      <p dir="ltr">I'm developing a custom federation that communicates
        with my user repository via webservices. <br>
        Probably this is a very strange scenario for a federation but
        that's the unique way that I have to communicate with the
        repository.</p>
      <p dir="ltr">My problem is that, as the webservices only exposes
        methods such as createUser and updateUser, I'm having problems
        with registrations and user profile updates because I'm not
        being able to do atomic calls to the webservice methods, with
        all the information that I need.</p>
      <p dir="ltr">As far as I know, from the properties file example
        and from the ldap federation source (probably I'm missing
        something) it seems that the federation api is intended to
        update and sync attribute by attribute (Keycloak &lt;-&gt;
        Federation). <br>
        Am i wrong? Do you suggest another approach? Should I give up
        from having a federation that uses a webservice?</p>
    </blockquote>
    You can use "transaction wrapper", which will allow you to store all
    the updates to user locally, but send the UPDATE request to your
    webservice later at transaction commit time. You may need to create
    custom transaction and enlist it with Keycloak TransactionManager. <br>
    <br>
    This is what we have for LDAP federation provider right now. See <span
      style="background-color:#e4e4ff;">TxAwareLDAPUserModelDelegate.</span>
    <meta http-equiv="content-type" content="text/html;
      charset=windows-1252">
    <br>
    <br>
    Marek<br>
    <blockquote
cite="mid:CAHEpHRL1tuZbp-DU-aQeQt9GZ1JyRhJUdw3L0H2Ca_Qj1wnLfw@mail.gmail.com"
      type="cite">
      <p dir="ltr">Thank you.</p>
      <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>