Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Tech Mahindra Ltd
CA
Last activity: 23 Jul 2019 15:34 EDT
How to generate JWT token with custom header using OOTB Token Profile Data Instance
We are using Token Profile data instance to create JSON webtoken (using the pxGenerateJWT activity). As per the pega help of Token Profile data instance ,The following required headers are added automatically:
alg – The used JWS algorithm, which is in the Security section, on the Generation tab.
cty – The content type is populated by default as application/json.
typ – The type is always JWT.
kid – The Key ID is a unique ID generated by the JWT runtime for each token generated.
crit – Headers that are marked as critical on the Generation tab.
The service which I am consuming for my application , requires us to send constant value for kid . How this can be achieved ?