Hi Dushantha,

>From what you've attached as sample decoded payload, I can see the email
address as '*[email protected] <[email protected]>*' retrive for the
claim 'http://wso2.org/claims/emailaddress'

Regards
Maneesha

On Mon, Nov 20, 2017 at 7:07 PM, Thivya Mahenthirarasa <[email protected]>
wrote:

> Hi Dushantha,
>
> Try creating a new user profile on your key manager with the email
> attribute and try the scenario again.  The browser might have kept the
> cache due to which you couldn't be able to find the email.
>
>
> Regards,
> Thivya
>
> On Mon, Nov 20, 2017 at 5:18 PM, Dushantha Batuwita <[email protected]>
> wrote:
>
>>
>> Hi Dev
>>
>> I’m involved in a task which is having API-M and IS as KM cluster,
>> There I generate a JWT token by going through [1]document.
>>
>> When I retrieve the jwt token and check by decoding I can’t find the
>> users email which I have already set at user profile level.
>>
>> *Sample decoded JWT payload*
>>
>> {
>>
>>  "http://wso2.org/claims/userid": "0a6eb289-9e02-4fd6-b8a6-26ea9c7ed360",
>>
>>  "http://wso2.org/claims/username": "patient1",
>>
>>  "http://wso2.org/claims/role": [
>>
>>    "patient",
>>
>>    "Internal/everyone"
>>
>>  ],
>>
>>  "http://wso2.org/claims/applicationtier": "Unlimited",
>>
>>  "http://wso2.org/claims/keytype": "PRODUCTION",
>>
>>  "http://wso2.org/claims/version": "v1.0",
>>
>>  "iss": "wso2.org/products/am",
>>
>>  "http://wso2.org/claims/applicationname": "patientApplication",
>>
>>  "http://wso2.org/claims/enduser": "[email protected]",
>>
>>  "http://wso2.org/claims/enduserTenantId": "-1234",
>>
>>  "http://wso2.org/claims/givenname": "Saman",
>>
>>  "http://wso2.org/claims/created": "2017-11-20T13:43:39",
>>
>>  "http://wso2.org/claims/fullname": "patient1",
>>
>>  "http://wso2.org/claims/modified": "2017-11-20T15:00:58",
>>
>>  "http://wso2.org/claims/subscriber": "patient1",
>>
>>  "http://wso2.org/claims/tier": "Unlimited",
>>
>>  "http://wso2.org/claims/emailaddress": "[email protected]",
>>
>>  "http://wso2.org/claims/lastname": "patient1",
>>
>>  "http://wso2.org/claims/applicationid": "5",
>>
>>  "http://wso2.org/claims/usertype": "APPLICATION",
>>
>>  "exp": 1511176687,
>>
>>  "http://wso2.org/claims/apicontext": "/patientInfo/v1.0"
>>
>> }
>>
>>
>> Please advise If I’m missing out something when I configure to include
>> user email
>>
>> [1]https://docs.wso2.com/display/AM200/Passing+Enduser+Attri
>> butes+to+the+Backend+Using+JWT
>>
>>
>>
>> Many thanks
>>
>>
>>
>>
>>
>> --
>> *Dushantha Nayanajith Chandima Batuwita*
>> Software Engineer Support | WSO2
>> [email protected]
>> mobile : 0094777453010
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Thivya Mahenthirarasa*
>
> *Software Engineer -Support Team | WSO2*
>
>
> *Email: [email protected] <[email protected]>*
>
> *Mobile: +94766461966 <+94%2076%20646%201966> <http://wso2.com/signature>*
> *Web: http://wso2.com <http://wso2.com>*
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Maneesha Wijesekara
Software Engineer - QA Team
WSO2 Inc.

Email: [email protected]
Linkedin: http://linkedin.com/in/maneeshawijesekara
Mobile: +94712443119
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to