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_tokenthat expires and needs to be refreshed usingclient_idandclient_secret(standardclient_credentialsflow). - 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 usingcurland Postman. The issue seems to be that Airbyte is still expecting arefresh_token`, which shouldn’t be the case here.
Here’s what I need help with:
- Does Airbyte support OAuth with the
client_credentialsgrant type where theaccess_tokenexpires and must be refreshed without arefresh_token? - How can I configure Airbyte to send the
access_tokenin 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.