Question

6
Replies
802
Views
Close popover
Sudipta Biswas (SudiptaB7860)
Tech Mahindra Ltd

Tech Mahindra Ltd
CA
SudiptaB7860 Member since 2018 6 posts
Tech Mahindra Ltd
Posted: April 14, 2019
Last activity: July 23, 2019
Closed

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:

https://community.pega.com/sites/default/files/help_v82/procomhelpmain.htm#data-/data-admin-/data-admin-security-/data-admin-security-token/generation.htm#Generation_tab_on_the_Token_Profile_form

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 ?

Low-Code App Development
Moderation Team has archived post