To be able to authenticate your API calls, you need to have basic credentials. Your credentials are the base64 encoding of your username and password. This can be generated in a number of ways, but one method is to use the shell:
echo -n '<username>:<password>' | openssl base64
This will return your personal credentials to be used in all future API calls as BasicCreds
.
All API requests to the server must be authenticated by including your credentials in a header that looks like the following:
--header 'Authorization: BasicCreds <your-credentials>'
Where your-credentials
is replaced with your personal key, as generated above.