<div dir="ltr">JIRA please</div><div class="gmail_extra"><br><div class="gmail_quote">On 3 November 2015 at 07:50, Lohitha Chiranjeewa <span dir="ltr"><<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>We came across an issue when integrating a custom OIDC IDP and mapping roles into it. When we have a list of external roles to map into Keycloak roles, the process fails.<br><br></div>The issue is at the bottom of the <span>valueEquals</span>(<span>String</span>, <span>Object</span><span></span>) method in the AbstractClaimMapper class. When the incoming Object is a list, it just performs the comparison with the first element and returns...<br><br>...<br>} <span>else</span> <span>if</span> (value <span>instanceof</span> <span>List</span>) {<br><span> List</span> list <span>=</span> (<span>List</span>)value;<br><span> for</span> (<span>Object</span> val <span>:</span> list) {<br> <span>return</span> valueEquals(desiredValue, val);<br> }<br>}<br>...<br><br></div>Instead the code should be something like this:<br>...<br>} <span>else</span> <span>if</span> (value <span>instanceof</span> <span>List</span>) {<br><span> List</span> list <span>=</span> (<span>List</span>)value;<br><span> for</span> (<span>Object</span> val <span>:</span> list) {<br> if (valueEquals(desiredValue, val)) return true;<br> }<br>}<br><div>...<br><br><br></div><div>Regards,<br></div><div>Lohitha<br></div></div>
<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>