<font face="arial" size="2"><p style="margin:0;padding:0;font-family: arial; font-size: 10pt; word-wrap: break-word;">Sorted!. Thanks.</p>
<p style="margin:0;padding:0;font-family: arial; font-size: 10pt; word-wrap: break-word;">Upgraded all the related components to 1.2.0. Played around with the configurations on the protocol mappings and worked fine.</p>
<p style="margin:0;padding:0;font-family: arial; font-size: 10pt; word-wrap: break-word;">&nbsp;</p>
<p style="margin:0;padding:0;"><!--WM_COMPOSE_SIGNATURE_START-->Regards,</p>
<p style="margin:0;padding:0;">Kalinga</p>
<p style="margin:0;padding:0;">&nbsp;</p>
<p style="margin:0;padding:0;font-family: arial; font-size: 10pt; word-wrap: break-word;"><br />-----Original Message-----<br />From: "Kalinga Dissanayake" &lt;kalinga@leapset.com&gt;<br />Sent: Wednesday, May 6, 2015 5:19am<br />To: "Marek Posolda" &lt;mposolda@redhat.com&gt;<br />Cc: "Bill Burke" &lt;bburke@redhat.com&gt;, keycloak-user@lists.jboss.org<br />Subject: Re: [keycloak-user] User attributes in ID Token using protocol mappers<br /><br /></p>
<div id="SafeStyles1431420132">
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt; word-wrap: break-word;">I am using 1.2.0 Beta version on keycloak.</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt; word-wrap: break-word;">Hmm...Let me try again and see how it goes.</p>
<p class="MsoNormal" style="margin:0;padding:0;margin: 0; padding: 0; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">&nbsp;</p>
<p class="MsoNormal" style="margin:0;padding:0;margin: 0; padding: 0; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">Regards,</p>
<p class="MsoNormal" style="margin:0;padding:0;margin: 0; padding: 0; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">Kalinga</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt; word-wrap: break-word;"><br /><br />-----Original Message-----<br />From: "Marek Posolda" &lt;mposolda@redhat.com&gt;<br />Sent: Tuesday, May 5, 2015 8:51pm<br />To: "Bill Burke" &lt;bburke@redhat.com&gt;, keycloak-user@lists.jboss.org<br />Subject: Re: [keycloak-user] User attributes in ID Token using protocol mappers<br /><br /></p>
<div id="SafeStyles1430869651">
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt; word-wrap: break-word;">+1 for combine them.<br /><br />Or maybe UserPropertyMapper could display the combobox with the <br />available properties from UserModel? As those could be retrieved by <br />reflection.<br /><br />Marek<br /><br />On 5.5.2015 17:15, Bill Burke wrote:<br />&gt; There is a UserProperty mapper and a UserAttribute mapper. Use the<br />&gt; "UserAttribute" mapper. Maybe that's it? UserProperty is looks for get<br />&gt; methods on UserModel. Meh, this as probably a bad idea. Should<br />&gt; probably have just combined them.<br />&gt;<br />&gt; On 5/5/2015 10:38 AM, Kalinga Dissanayake wrote:<br />&gt;&gt; Is it possible to return a user attribute in the ID token using protocol<br />&gt;&gt; mappers?<br />&gt;&gt;<br />&gt;&gt; I have a user that has a custom attribute called "accountId" and a value<br />&gt;&gt; is assigned to it. I checked in the USER_ATTRIBUTE table (mysql) and the<br />&gt;&gt; values are properly assigned.<br />&gt;&gt;<br />&gt;&gt; I created a protocol mapper. In that I set the protocol type as "User<br />&gt;&gt; Attribute" and entered the key "accountId" as both the User Attribute<br />&gt;&gt; and Token Claim Name and switched on both "Add to ID Token" and "Add to<br />&gt;&gt; Access Token".<br />&gt;&gt;<br />&gt;&gt; I simply cant get this accountID attribute value returned in the ID<br />&gt;&gt; Token nor Access Token.<br />&gt;&gt;<br />&gt;&gt; Basically I need to return the user attributes in the ID Token / Access<br />&gt;&gt; Token. Is it possible?<br />&gt;&gt;<br />&gt;&gt; Regards*,*<br />&gt;&gt;<br />&gt;&gt; Kalinga<br />&gt;&gt;<br />&gt;&gt;<br />&gt;&gt;<br />&gt;&gt; _______________________________________________<br />&gt;&gt; keycloak-user mailing list<br />&gt;&gt; keycloak-user@lists.jboss.org<br />&gt;&gt; https://lists.jboss.org/mailman/listinfo/keycloak-user<br />&gt;&gt;<br /><br />_______________________________________________<br />keycloak-user mailing list<br />keycloak-user@lists.jboss.org<br />https://lists.jboss.org/mailman/listinfo/keycloak-user</p>
</div>
</div></font>