Question
SOFTTECH A.Ş.
TR
Last activity: 11 Mar 2024 5:38 EDT
JWT Creation and its usage for Connect-Rest rule
Hi,
We are trying to integrate to a rest web service which we have to make our request in Jwt format. Thus, we have a connect-rest rule and i have created a Token Profile rule.
I am calling pxGenerateJWT activity to generate jwt token,inside the activity containing connect-rest method ; and on the output page i get pyJWT property containing jwt and setting this pyJWT property to a custom Property. When i decode pyJWT property's value containing jwt by using https://jwt.io/ web page, i see that some pega's oob properties (pxObjClass etc.) are added inside request fields in the payload. Because of these extra fields, our requests are failing with validation errors on service side.
So how can we avoid these oob pega properties to be added into the reuqest? Meanwhile I attached screenshots of how i set token profile, connect-rest rule and activity calling it as well. I wonder if i am setting Message data on Connect-Rest rule correctly or should i make a change on Token Profile?
Any help is appreciated.
Thank you.