Basic Authentication Guide

Our Basic authentication method requires that you place the partnerId and partnerKey in the authentication header.

To build a Basic Authentication header:

1) Concatenate your partnerId and partnerKey with a : separator.

WATERFORD:ef1ad938150fb15a1384b883a104ce70

2) Base64 encode the string.

base64Encode( WATERFORD:ef1ad938150fb15a1384b883a104ce70 )

//output V0FURVJGT1JEOmVmMWFkOTM4MTUwZmIxNWExMzg0Yjg4M2ExMDRjZTcw

3) Build the Basic auth header.

authorization: Basic V0FURVJGT1JEOmVmMWFkOTM4MTUwZmIxNWExMzg0Yjg4M2ExMDRjZTcw

Example:

curl 'https://cert-parser.decryptx.com/api/v1/partner/validate' \
    -X POST \
    --header 'Content-Type: application/json' \
    --header 'Accept: application/json' \
    --header 'authorization: Basic V0FURVJGT1JEOmVmMWFkOTM4MTUwZmIxNWExMzg0Yjg4M2ExMDRjZTcw' \
    -d '{
            "reference"  : "723f57e1-e9c8-48cb-81d9-547ad2b76435"
        }'