I am attempting to create a custom connector that connects to an external API. For the security section of the custom connector, I selected API key. I gave the proper API key when creating the connection, but when I try to test the connection I get an error saying invalid authorization header. I realized that when the request is made, Bearer is being added before the API key like this:
{
"Authorization": "Bearer xxxxxxxxxxxxxxxxxx"
}
This is an issue because the API I am trying to access uses basic authentication. I was able to access this API using Google Apps Script with the header:
{
"Authorization": "xxxxxxxxxxxxxxxxxx"
}
I tried turning off authentication in security and adding this header in the definition section as part of the GET request, but I got an error saying the 'Authorization' header is not allowed. When looking through the forums for the API I am trying to access I came across this post https://forum.aws.chdev.org/t/status-code-400/6102 which says "the Companies House API key is the username part of a the http basic authorization username:password string format (the whole is base64 encoded) and the password is blank." When I try setting up this API using basic authentication it does not allow me to leave the password blank. Is there any solution to this issue?

Report
All responses (
Answers (