Once you have obtained the
kid
value from the JWT header, you can
use that value to retrieve the public key. To retrieve the public key, request the
with the /flex/v2/public-keys/[kid]
endpoint.The public key is returned as a JSON Web Key (JWK).
Example Request
Endpoiont:
GET https://
https://apitest.cybersource.com
/flex/v2/public-keys/zu{}
Example Response
{ "kty": "RSA", "use": "enc", "kid": "zu", "n": "ozmvkuGzWNHs9cEcC5PWwbG-dmSjPcoQFxEbqH_fBjkj_nfTTKshdiSq5ciulWEa_rrqQ2qwcSADNxtTzRR1qfud-NvsM8Vlt T7xDuVVqPTZoWLKa0BWXgQQ-1mCm1KdGltYWccB0R1LoF-rb3DEEZySsHvqErYzYt4M_rqjEiK5Y9y1h3k1h5Yk4zGLWchko3 jiDS-pVevvWsQsN-Y3KuB19485G9P_MXLtfJWQ4wC4jlo9etdD_hgDfxX-hQy3wuwHfHifLdxvxiB8X5Is4m6DuY4_7hS5RwX AjO1QSd-zUYZNT_2yWVR56_jyiZEiOdgIm9QtLPZCTKzqsXoqZQ", "e": "AQAB" }