[keycloak-user] User ID should be used as "user reference" not username

Chen Keong Yap chenkeong.yap at izeno.com
Tue Mar 31 07:42:00 EDT 2015


Hi leornardo,

My application is running on websphere app server  and the only way to talk
to keycloak is to use picketlink spfilter because we are not allowed to use
keycloak proxy.
On Mar 31, 2015 7:19 PM, "Leonardo Loch Zanivan" <leonardo.zanivan at gmail.com>
wrote:

> Chen,
>
> You could set "principal-attribute" in the adapter config (keycloak.json)
> as "preferred_username".
> https://issues.jboss.org/browse/KEYCLOAK-810
>
> On Tue, Mar 31, 2015 at 7:50 AM Chen Keong Yap <chenkeong.yap at izeno.com>
> wrote:
>
>> Hi,
>>
>> I was using picketlink spfilter for testing and noticed sessionid is
>> assigned to username. We don't have this problem in keycloak 1.1.0 beta2
>> and this issue only
>> appear starting from keycloak 1.1.0 final and in master build. Kindly
>> advise.
>>
>> Source :
>>
>> Principal userPrincipal = (Principal)
>> session.getAttribute(GeneralConstants.PRINCIPAL_ID);
>> Welcome to the Employee Tool, <b><%=userPrincipal.getName()%></b>.
>>
>> Output :
>>
>> Welcome to the Employee Tool, G-155d13b0-a69d-4721-8187-cd1a16c90f3c.
>>
>>
>> On Tue, Mar 31, 2015 at 2:33 PM, Stian Thorgersen <stian at redhat.com>
>> wrote:
>>
>>> Can you please explain what the problem is? That issue is an
>>> enhancement, not a bug.
>>>
>>> ----- Original Message -----
>>> > From: "Chen Keong Yap" <chenkeong.yap at izeno.com>
>>> > To: keycloak-user at lists.jboss.org
>>> > Sent: Tuesday, 31 March, 2015 8:20:26 AM
>>> > Subject: [keycloak-user] User ID should be used as "user reference"
>>> not       username
>>> >
>>> > Hi,
>>> >
>>> > This issue is happened again in the master build.
>>> >
>>> > Can advise which object is causing the issue?
>>> >
>>> > Reference :
>>> >
>>> > https://issues.jboss.org/browse/KEYCLOAK-284
>>> >
>>> >
>>> > _______________________________________________
>>> > keycloak-user mailing list
>>> > keycloak-user at lists.jboss.org
>>> > https://lists.jboss.org/mailman/listinfo/keycloak-user
>>>
>>
>>
>>
>>
>>
>>  _______________________________________________
>> keycloak-user mailing list
>> keycloak-user at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20150331/dbde43a7/attachment.html 


More information about the keycloak-user mailing list