REST API

Validate the JSON Web Token

Once the system has returned the transient JWT, you should validate the token's authenticity. This is done by retrieving the public key signature that is part of the transitent JWT, and comparing that signature with the public key returned from
Cybersource
.
To validate the key:
  1. Retrieve the public key ID (kid) from the transient JWT header.
  2. Retrieve the public key from
    Cybersource
    .
  3. Validate the public key signature.