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+Attributes+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

Reply via email to