For users that want to know how to add basic authentication, the -u parameter in a Curl request.
In your browser open the console and type btoa('{{username}}:{{password}}')
, replace {{username}}
and {{password}}
with the required credentials. It will return a base64 encoded string.
In the API Data Source just add an header, name Authorization
and value Basic {{generated base64 string}}
.
But please be aware that when using this in client-side script like with App Connect everyone can see you credentials. Never use it for credentials that the user may not access. You can use it for user credentials, when the user has to submit there own credentials.