Aiman
10/05/2023, 9:47 AMkapa.ai
10/05/2023, 9:48 AMAuthorization: Bearer <token>. The token is typically obtained from your API's settings or during the OAuth process. Here's an example of how you can use it: yaml api_token: "{{ config['api_key'] }}" or yaml api_token: "{{ config['token'] }}" In these examples, api_key and token are placeholders for the actual key names you have in your configuration. Replace them with the actual key names. You can also set custom HTTP headers to send to Airbyte's API with the octavia command: bash octavia --api-http-header Authorization Bearer my-secret-token list connectors sources Or use a custom YAML file to declare the HTTP headers to send to the API: yaml headers: Authorization: Bearer my-secret-token User-Agent: octavia-cli/0.0.0 Environment variable expansion is available in this YAML file: yaml headers: Authorization: Bearer ${MY_API_TOKEN} Please note that options based headers are overriding file based headers if a header is declared in both. For more details, you can refer to the [Airbyte CLI documentation](https://docs.airbyte.com/cli-documentation) and the [YAML Reference](https://docs.airbyte.com/connector-development/config-based/understanding-the-yaml-file/reference) in the Airbyte documentation.Aiman
10/05/2023, 9:49 AMairbyte and password is password and we get bearer authTamunopriye George
10/05/2023, 1:56 PMimport base64
# Concatenate username and password with a colon and encode in Base64
credentials = base64.b64encode(f'{username}:{password}'.encode('utf-8')).decode('utf-8')
headers = {
'Authorization': f'Basic {credentials}'
}Aiman
10/05/2023, 1:58 PM