To generate a JSON Web Token in Pega Platform, you need to call the
pxGenerateJWT activity. The activity can then generate the
token.
-
Create a custom activity that you will use to generate the JSON web token.
-
In your activity, add a step to call the activity pxGenerateJWT, and
pass these parameters.
- profileName - Enter the token profile name that you created.
- jwtPageName - Enter the JWT clipboard page name.
- inputPagaName - Enter the page name that contains input data
used in a custom claim.
- payloadPageName - Enter the page name from which you want to
map properties.
- payloadCustomKeyName - Enter the node name where the data is
generated. The default name is pyData.
- excludedPropertiesJWTList - Enter a comma-separated list of
properties to exclude from the node.
- outputPegaName - Enter the generated JWT.
-
Click Save.
-
Run your custom activity to generate the token.