Prerequisites
Before you start following your guide you need prepare this list in advance
- Virtual Machine (VM) with Ubuntu Installed
- SSH access and Public IP of that machine
- Assigned Domain Name on that Public Ip e.g. - client-exante-proxy.company.com
- Ports 22, 80, 443 should be open
Bearer Token to be provided (e.g. in case of Exante)
Generate Auth Token
Open a terminal window.
- Type this command, replacing
YOUR_API_KEY
andYOUR_SECRET_KEY
with your real keys:echo -n "YOUR_API_KEY:YOUR_SECRET_KEY" | base64
- Press Enter.
- The terminal will show a long string of letters and numbers. This is your encoded token.
- Copy that string.
- When you call your API, add this header (showing your copied string in place of
ENCODED_STRING
):Authorization: Basic ENCODED_STRING
- If your API really needs a Bearer header instead, use:
Authorization: Bearer ENCODED_STRING
That’s it. Now your API call will send the correct token.