Summary
Need guidance on passing client certificate and bearer token for API authentication.
Question
Hi All… I am trying to connect to an API Endpoint that requires…
• Client Certificate (public/private key)
• Bearer token ( that is obtained by posting a clientID / passkey)
I was not able to find how to pass the client certificate anywhere. Would someone be able to point me in the right direction?
Thank You for any help!
This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want to access the original thread.
Join the conversation on Slack
["api", "client-certificate", "bearer-token", "authentication"]
Based on the information provided in the extracts, it seems that Airbyte supports OAuth authentication which requires parameters like client_id
, client_secret
, refresh_token
, etc. However, there is no explicit mention of support for Client Certificate (public/private key) authentication. Here is an example of how OAuth authentication is configured in Airbyte: yaml authenticator: type: "OAuthAuthenticator" token_refresh_endpoint: "<https://api.searchmetrics.com/v4/token>" client_id: "{{ config['api_key'] }}" client_secret: "{{ config['client_secret'] }}" refresh_token: ""
(Source: Airbyte Documentation) For more specific information about your use case, I would recommend checking the Airbyte Documentation or reaching out to the Airbyte community on their Forum or Github.
<@U04SE163WC8> when using OAuth, our API endpoint also requires the requestor to pass a certificate and private key. This is done in python by including the cert parameter in the request call like this.
clientCrt = ‘path/to/cert’
clientKey = ‘path/to/privateKey’
cert = (clientCrt, clientKey)
headers = {‘Content-Type’: ‘application/x-www-form-urlencoded’}
response = http://requests.post|requests.post(‘API URL’, headers=headers, cert=cert)
Is there a way to include these cert parameters when using the connection builder?
Hmm, I don’t know enough to give you a confident answer yet. The information extracts provided do not contain specific details on how to include certificate parameters when using the connection builder in Airbyte. However, Airbyte does support custom authentication methods for complex APIs that require multiple requests or signing requests for authentication. This is done using the low-code CDK or Python CDK. I recommend checking out the Airbyte documentation for more information on custom authentication methods.