<p dir="ltr">Hi bill,</p>
<p dir="ltr">Thanks for the reply. For option 1, how can we make the random userid associated with the keycloak session?</p>
<p dir="ltr">For option 2, how can we implement this?</p>
<p dir="ltr">Please share your ideas. Thanks</p>
<div class="gmail_quote">On Mar 31, 2015 10:29 PM, "Bill Burke" <<a href="mailto:bburke@redhat.com">bburke@redhat.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You need to configure PL SP Filter correctly. PL SP Filter, by default<br>
asks for the "transient" nameid format which is a temporary randomly<br>
generated userid that is not stored or associated with the Keycloak<br>
session. Other options include:<br>
<br>
persistent - randomly generated, but associated with the application<br>
email<br>
unspecified (which Keycloak will send the username instead).<br>
<br>
<br>
<br>
On 3/31/2015 7:42 AM, Chen Keong Yap wrote:<br>
> Hi leornardo,<br>
><br>
> My application is running on websphere app server and the only way to<br>
> talk to keycloak is to use picketlink spfilter because we are not<br>
> allowed to use keycloak proxy.<br>
><br>
> On Mar 31, 2015 7:19 PM, "Leonardo Loch Zanivan"<br>
> <<a href="mailto:leonardo.zanivan@gmail.com">leonardo.zanivan@gmail.com</a> <mailto:<a href="mailto:leonardo.zanivan@gmail.com">leonardo.zanivan@gmail.com</a>>> wrote:<br>
><br>
> Chen,<br>
><br>
> You could set "principal-attribute" in the adapter config<br>
> (keycloak.json) as "preferred_username".<br>
> <a href="https://issues.jboss.org/browse/KEYCLOAK-810" target="_blank">https://issues.jboss.org/browse/KEYCLOAK-810</a><br>
><br>
> On Tue, Mar 31, 2015 at 7:50 AM Chen Keong Yap<br>
> <<a href="mailto:chenkeong.yap@izeno.com">chenkeong.yap@izeno.com</a> <mailto:<a href="mailto:chenkeong.yap@izeno.com">chenkeong.yap@izeno.com</a>>> wrote:<br>
><br>
> Hi,<br>
><br>
> I was using picketlink spfilter for testing and noticed<br>
> sessionid is assigned to username. We don't have this problem in<br>
> keycloak 1.1.0 beta2 and this issue only<br>
> appear starting from keycloak 1.1.0 final and in master build.<br>
> Kindly advise.<br>
><br>
> Source :<br>
><br>
> Principal userPrincipal = (Principal)<br>
> session.getAttribute(GeneralConstants.PRINCIPAL_ID);<br>
> Welcome to the Employee Tool, <b><%=userPrincipal.getName()%></b>.<br>
><br>
> Output :<br>
><br>
> Welcome to the Employee Tool,<br>
> G-155d13b0-a69d-4721-8187-cd1a16c90f3c.<br>
><br>
><br>
> On Tue, Mar 31, 2015 at 2:33 PM, Stian Thorgersen<br>
> <<a href="mailto:stian@redhat.com">stian@redhat.com</a> <mailto:<a href="mailto:stian@redhat.com">stian@redhat.com</a>>> wrote:<br>
><br>
> Can you please explain what the problem is? That issue is an<br>
> enhancement, not a bug.<br>
><br>
> ----- Original Message -----<br>
> > From: "Chen Keong Yap" <<a href="mailto:chenkeong.yap@izeno.com">chenkeong.yap@izeno.com</a><br>
> <mailto:<a href="mailto:chenkeong.yap@izeno.com">chenkeong.yap@izeno.com</a>>><br>
> > To: <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> <mailto:<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>><br>
> > Sent: Tuesday, 31 March, 2015 8:20:26 AM<br>
> > Subject: [keycloak-user] User ID should be used as "user<br>
> reference" not username<br>
> ><br>
> > Hi,<br>
> ><br>
> > This issue is happened again in the master build.<br>
> ><br>
> > Can advise which object is causing the issue?<br>
> ><br>
> > Reference :<br>
> ><br>
> > <a href="https://issues.jboss.org/browse/KEYCLOAK-284" target="_blank">https://issues.jboss.org/browse/KEYCLOAK-284</a><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > keycloak-user mailing list<br>
> > <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> <mailto:<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" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
><br>
><br>
><br>
><br>
><br>
><br>
> _________________________________________________<br>
> keycloak-user mailing list<br>
> <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a> <mailto:<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" target="_blank">https://lists.jboss.org/__mailman/listinfo/keycloak-user</a><br>
> <<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a>><br>
><br>
><br>
><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" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
><br>
<br>
--<br>
Bill Burke<br>
JBoss, a division of Red Hat<br>
<a href="http://bill.burkecentral.com" target="_blank">http://bill.burkecentral.com</a><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" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
</blockquote></div>