<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Marek,<div class=""><br class=""></div><div class="">I managed to set up the logger. Thanks! This is the configuration to dump the userinfo JSON response in the log file and the console.</div><div class=""><blockquote type="cite" class=""><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &lt;subsystem xmlns="urn:jboss:domain:logging:3.0"&gt;</div><div class=""><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;console-handler name="CONSOLE"&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;level name="DEBUG"/&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;formatter&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;named-formatter name="COLOR-PATTERN"/&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/formatter&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/console-handler&gt;</div></div><div class="">…</div><div class=""><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;logger category="org.keycloak.social.user_profile_dump"&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;level name="DEBUG"/&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/logger&gt;</div></div><div class="">...</div></blockquote></div><div class=""><div class=""><br class=""></div></div><div class="">I have another problem, which is to map the <b class="">userinfo</b> from the custom OpenID Connect backend. Upon login, it returns this JSON response:</div><div class=""><blockquote type="cite" class="">{"sub":"Christine Chapel","name":"","position":"","preferred_username":"Christine Chapel","address":"Nurse, USS Enterprise"}</blockquote></div><div class=""><br class=""></div><div class="">I’m trying to map&nbsp;<b class="">preferred_username</b> to the <b class="">Last Name</b> field. I tried to map this field, and also <b class="">sub</b> and <b class="">address</b>, but all without success:</div><div class=""><b class="">Name:</b> Fullname</div><div class=""><b class="">Mapper Type:</b> Attribute Importer</div><div class=""><b class="">Claim:</b> preferred_username</div><div class=""><b class="">User Attribute Name:</b> lastName</div><div class=""><br class=""></div><div class="">Is there a specific&nbsp;<b class="">Claim</b> or <b class="">User Attribute Name</b> that I need to use for the mapping to work?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Cheers!</div><div class=""><br class=""></div><div class=""><div class=""><div><blockquote type="cite" class=""><div class="">On 14 Jul 2015, at 14:59, Eugene Chow &lt;<a href="mailto:eugene.chow.ct@gmail.com" class="">eugene.chow.ct@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=windows-1252" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Marek,<div class=""><br class=""></div><div class="">Thanks for the heads up. I’ll give it a shot.</div><div class=""><br class=""></div><div class="">Eugene</div><div class=""><br class=""><div class=""><div class=""><blockquote type="cite" class=""><div class="">On 14 Jul 2015, at 14:53, Marek Posolda &lt;<a href="mailto:mposolda@redhat.com" class="">mposolda@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    <div class="moz-cite-prefix">Hi,<br class="">
      <br class="">
      do you have opportunity to upgrade to latest 1.3.1.Final? It seems
      that this logging was added in this version and is not yet
      available in 1.2.0.<br class="">
      <br class="">
      Marek<br class="">
      <br class="">
      On 14.7.2015 07:59, Eugene Chow wrote:<br class="">
    </div>
    <blockquote cite="mid:AF0EF6CE-9A56-4831-A9FE-52D8D6C5E6AD@gmail.com" type="cite" class="">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252" class="">
      <div class="">Hi Stian/Marek,</div>
      <div class=""><br class="">
      </div>
      <div class="">Can you please advise on the following? I used the
        instructions from this page -&nbsp;<a moz-do-not-send="true" href="http://keycloak.github.io/docs/userguide/html/identity-broker.html#d4e1954" class="">http://keycloak.github.io/docs/userguide/html/identity-broker.html#d4e1954</a>.
        I’m not sure if I have included it in the correct location as it
        doesn’t work.</div>
      <div class=""><br class="">
      </div>
      <div class="">I need this to debug the JSON response from a custom
        OpenID Connect backend.</div>
      <div class=""><br class="">
      </div>
      <div class=""><br class="">
      </div>
      <div class="">Thanks a lot!</div>
      <div class="">Eugene</div>
      <br class="">
      <div class="">
        <blockquote type="cite" class="">
          <div class="">On 13 Jul 2015, at 17:20, Eugene Chow &lt;<a moz-do-not-send="true" href="mailto:eugene.chow.ct@gmail.com" class="">eugene.chow.ct@gmail.com</a>&gt;
            wrote:</div>
          <br class="Apple-interchange-newline">
          <div class="">Hi,<br class="">
            <br class="">
            i have a Keycloak 1.2.0 installation that authenticates
            against a custom OpenID Connect provider. I need to see the
            JSON response from the social provider. The documentation
            says to set org.keycloak.social.user_profile_dump to DEBUG.<br class="">
            <br class="">
            I’ve added the following to standalone.xml as such, but I
            don’t see any JSON output in the log. Is this configuration
            correct?<br class="">
            <br class="">
            &nbsp;&nbsp;&nbsp;&lt;profile&gt;<br class="">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;subsystem
            xmlns="urn:jboss:domain:logging:2.0”&gt;<br class="">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;logger
            category="org.keycloak.social.user_profile_dump"&gt;<br class="">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;level name="DEBUG"/&gt;<br class="">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/logger&gt;<br class="">
            …<br class="">
            ...<br class="">
            &nbsp;&nbsp;&nbsp;&lt;/profile&gt;<br class="">
            <br class="">
            <br class="">
            Thanks!<br class="">
            Eugene</div>
        </blockquote>
      </div>
      <br class="">
      <br class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br class="">
      <pre wrap="" class="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
    </blockquote>
    <br class="">
  </div>

</div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></div></div></body></html>