Hi Kanapriya,

I had modified the code according to your suggestion and verified with IS
5.3.0,IS 5.4.0 and IS 5.4.1 . I got the expected output.

Thanks Kana.

Regards,

Kalaiyarasi Ganeshalingam
Associate Software Engineer| WSO2
WSO2 Inc : http://wso2.org
<http://www.google.com/url?q=http%3A%2F%2Fwso2.org&sa=D&sntz=1&usg=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
Tel:+94 076 6792895

On Tue, May 22, 2018 at 1:46 PM, Kanapriya Kuleswararajan <
[email protected]> wrote:

> Hi Kalayarasi,
>
> - support-dev-group@ and + dev@
>
> Try the following to get claim values from user-store.
>
> Map<String, String> userClaimValues = 
> userRealm.getUserStoreManager().getUserClaimValues(username,
> new String[]{claimURI}, null);
>
> Thanks,
> Kanapriya
>
>
> Kanapriya Kuleswararajan
> Software Engineer
> Mobile : - 0774894438
> Mail : - [email protected]
> LinkedIn : - https://www.linkedin.com/in/kanapriya-kules-94712685/
> WSO2, Inc.
> lean . enterprise . middleware
>
>
> On Tue, May 22, 2018 at 1:38 PM, Kalaiyarasi Ganeshalingam <
> [email protected]> wrote:
>
>> Hi All,
>>
>> I have configured the token2 authenticator with IS 5.3.0 , IS 5.4.0 , IS
>> 5.4.1 and IS 5.5.0. It's worked with IS 5.5.0 and didn't work with other IS
>> pack. I got the error [1] from backend.I debugged the code and found the
>> point [2] that was produced the error. Why I couldn't get the User Id from
>> userClaimValues?
>>
>> [1] ERROR {org.wso2.carbon.identity.application.authentication.framewo
>> rk.handler.step.impl.DefaultStepHandler} -  Token2 UserId is null
>> org.wso2.carbon.identity.application.authentication.framewor
>> k.exception.AuthenticationFailedException: Token2 UserId is null
>>
>> [2] userId = userRealm.getUserStoreManager().getUserClaimValue(username,
>> Token2Constants.USERID_CLAIM, null);
>>
>> Regards,
>> Kalai
>>
>> Kalaiyarasi Ganeshalingam
>> Associate Software Engineer| WSO2
>> WSO2 Inc : http://wso2.org
>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org&sa=D&sntz=1&usg=AFQjCNE_eTDfyl2ibPcq0hcXvRDNVuQmMg>
>> Tel:+94 076 6792895
>>
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to