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

book

Article ID: 7234

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

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

Environment

Release:
Component: APIGTW

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

Attachments

1558533970933TEC1767959.zip get_app