Re: AUTHENTICATION_ERROR

Solved! Go to solution
fr
Regular Visitor

AUTHENTICATION_ERROR

Hello,

I'm trying to use the Offers Data API but I'm getting back the error "AUTHENTICATION_ERROR" with message the following message:

> "Access Denied.  Please consult the VDP documentation for providing your App with the proper auth credentials for the APIs being accessed."

Here's the code (I'm using node.js):
https://gist.github.com/anonymous/2032b0033e3c52959a27a987ec8d9bc7

The file './config/visa.json' contains my userId and password.

The function 'getBasicAuthHeader' was taken straight out of the VISA SampleCode repository:
https://github.com/visa/SampleCode/blob/master/vdp-node/libs/visaapiclient.js#L23

Why am I getting this error? Is there anything wrong with the code?

Thanks in advance

4 REPLIES 4
ricardo_visa
Community Scholar

Re: AUTHENTICATION_ERROR

Sorry to hear that. I am looking into this right now. Will get back to you shortly. 

 

Thank you,

Ricardo 




Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
ricardo_visa
Community Scholar

Re: AUTHENTICATION_ERROR

By the way, are you sending a valid cert for the call? We often get the mentioned error when we don’t send any certificate for a Mutual Auth API...let me know!




Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
fr
Regular Visitor

Re: AUTHENTICATION_ERROR

Hey ricardo_visa,

 

Duh, that was it. I thought I had to send only the userId and password. Now I'm also sending the certificate and the key and it's working.

 

Thank you for helping 🙂

aali01
Regular Visitor

Re: AUTHENTICATION_ERROR

Hello,

Can you please guide how to get certificate?