airbyte-connectors icon indicating copy to clipboard operation
airbyte-connectors copied to clipboard

How to update refresh_token in source config?

Open anna-lisniak-renormalize opened this issue 1 year ago • 5 comments

My source needs to support OAuth2.0 authentication. This gives me access_token, refresh_token, expires_in So when the acess_token is expired, I have to request a new access_token and a new refresh_token. Do you know how I can update the new tokens in the configuration?

Which source are you referring to?

tovbinm avatar May 22 '23 18:05 tovbinm

We have the same issue. We have refresh_token which updates at some time. And we need to update it in the connector source. Can we do it?

Vadym5 avatar Feb 20 '24 16:02 Vadym5

Which connector are you using?

tovbinm avatar Feb 21 '24 16:02 tovbinm

Which connector are you using?

Custom source for Quickbooks service.

So we are developing our own source for Quickbokks API, and it has full OAuth flow. After each request it return new refresh token and we asking where is the best place to store this refresh and auth token ?

Vadym5 avatar Feb 21 '24 16:02 Vadym5

Yes, you should be able to do it. I recommend implementing the client in a separate class and explicitly handling the token expiration error in the client.

tovbinm avatar Feb 21 '24 17:02 tovbinm