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

Remove credentials object from config, enable refresh token rewrite #51615

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pabloescoder
Copy link
Collaborator

@pabloescoder pabloescoder commented Jan 17, 2025

What

Resolves #49842

How

QB refreshes the refresh_token every time a new refresh token is requested or after 24 hours whichever is earlier. This caused problems in clients where the connector stopped working after 24 hours.
This is solved by the refresh_token_updater field in the yaml, but that requires the refresh_token path to be non nested, so the credentials object was removed from the config in this PR (since QB had only 1 auth type) and all the config fields were moved to root level.
Once the config was no longer nested, refresh_token_updater was used to overwrite the refresh_token in the config with the new refresh token which is returned whenever the "old" refresh token is used to request for a new access token.
image

Review guide

  1. manifest.yaml

User Impact

Breaking change, user will have to repopulate their config fields since we removed the nested credentials object.

Can this PR be safely reverted and rolled back?

  • YES 💚

Copy link

vercel bot commented Jan 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 17, 2025 9:33pm

@octavia-squidington-iii octavia-squidington-iii added area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/quickbooks labels Jan 17, 2025
@octavia-squidington-iv octavia-squidington-iv requested a review from a team January 17, 2025 21:04
@pabloescoder pabloescoder requested a review from DanyloGL January 17, 2025 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/quickbooks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[source-quickbooks] token expires every 24h
2 participants