Question

6
Replies
764
Views
SudiptaB7860 Member since 2018 5 posts
Tech Mahindra Ltd
Posted: 1 year ago
Last activity: 1 year 3 months ago
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
Share this page LinkedIn