Summary
The user is facing an issue with OAuth authentication using the client_credentials flow in a custom connector. Airbyte is expecting a refresh_token even though it’s not needed for this flow.
Question
Hello, Airbyte people! I am pretty sure I have found a bug.
I’m running into an issue with OAuth authentication using the client_credentials
flow for a custom connector. Here’s a breakdown of the problem:
- I’m trying to retrieve a bearer
access_token
that expires and needs to be refreshed usingclient_id
andclient_secret
(standardclient_credentials
flow). - I’ve set up the Airbyte config to use
grant_type: client_credentials
, and there is no need for arefresh_token
, as this flow doesn’t use it. - However, I keep getting this error:
``` OAuthAuthenticator needs a refresh_token parameter if grant_type is set torefresh_token```` I've confirmed that the token endpoint works fine using
curland Postman. The issue seems to be that Airbyte is still expecting a
refresh_token`, which shouldn’t be the case here.
Here’s what I need help with:
- Does Airbyte support OAuth with the
client_credentials
grant type where theaccess_token
expires and must be refreshed without arefresh_token
? - How can I configure Airbyte to send the
access_token
in the headers of API requests and automatically refresh it when needed? - Is there a specific way to configure this setup within Airbyte’s low-code framework?
I appreciate any guidance or examples of how to configure this properly! Thanks in advance for your 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.