Hi everyone.
We are in the process of building a custom connector, but we haven't managed to configure our user authentication.
We are using the API Key for this matter, and based on DOMO's documentation, our authentication test code looks like this:
//This logging is here for testing! Remove before publishing your connector
DOMO.log('metadata.account.apiKey: ' + metadata.account.apikey);
// Adding the api key in the query parameter
httprequest.addParameter('key',metadata.account.apikey);
// Making the call to the api endpoint
var res = httprequest.get('https://ourserver');
DOMO.log(res)
// Make sure to determine and set the authentication status to either success or failure.
if (httprequest.getStatusCode() == 200) {
auth.authenticationSuccess();
} else {
auth.authenticationFailed('The api key you entered is invalid. Please try again with a valid key.');
}
DOMO.log(res) returns the following error:
"PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"
It seems that there's a problem validating our certificate. We manage to reach the API using Postman, and our certificate is not self-generated; it's generated by a trusted authority.
Has anybody faced the same problem we are experiencing?
Thanks in advance.
Alejandro.