How to sign a payload using Encode JSON web token assertion using a context variable

Document ID : KB000007234
Last Modified Date : 22/03/2018
Show Technical Document Details
Issue:

How to sign a payload using Encode JSON web token Assertion using a context variable

Resolution:

The Encode JSON Web Token Assertion creates a compact, URL-safe message as a JWT token that is represented using the JWS  or JWE Compact Serialization. The Encode JSON Web Token Assertion uses only a private key to sign. 

 

The Create JSON Web Key Assertion creates a public key and so cannot be used for signing. You can use this site to generate a key-value pair https://mkjwk.org/ 

Then use a context variable as the private key to encode. 

You can then use the Decode Json web token assertion to decode the payload

 

Here is an example of an assertion that you can use. Russ.xml

File Attachments:
TEC1767959.zip