Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to update refresh_token in source config? #1019

Open
anna-lisniak-renormalize opened this issue May 22, 2023 · 5 comments
Open

How to update refresh_token in source config? #1019

anna-lisniak-renormalize opened this issue May 22, 2023 · 5 comments

Comments

@anna-lisniak-renormalize

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?

@tovbinm
Copy link
Contributor

tovbinm commented May 22, 2023

Which source are you referring to?

@Vadym5
Copy link

Vadym5 commented Feb 20, 2024

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?

@tovbinm
Copy link
Contributor

tovbinm commented Feb 21, 2024

Which connector are you using?

@Vadym5
Copy link

Vadym5 commented Feb 21, 2024

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 ?

@tovbinm
Copy link
Contributor

tovbinm commented Feb 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants