-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[EPIC] Support single use refresh tokens (connectors can update their configs during a sync) #3990
Comments
To add to the context, I'm currently working on a source connector that's implementing "short-lived access tokens and long-lived refresh tokens". Based on the documentation of the source I'm working on, they return a new From their docs:
From this specification, I need to have the most updated |
Currently, @santels is blocked on contributing their Xero connector because of this issue. How big of a change would this be to implement? |
To me, the task that takes more time here is extending the protocol. We have to make sure we do it correctly. Making the CDK modification should be a matter of prioritisation after. Do you agree @sherifnada ? @avaidyanatha is there are preferred deadline for this or is it asap? |
I want to write two source connectors which both require the use of Authorization grant followed by rotating refresh tokens. In the meantime I am thinking of using external storage (like azure blob or ftp) to store this azure token outside of the connector until this feature is complete. Or is there another way to more elegantly solve this? |
@wissevrowl until we fix this issue that's probably your best bet |
I have this problem with the Intuit Quickbooks source. The old refresh token is expired when a new one is granted (or used, possibly). The singer tap itself does handle it in a fashion – it overwrites the Is the protocol under discussion? It seems something simple like this would be sufficient? {"type": "CONFIG", "config": {"refresh_token": "...", "access_token": "..."}} |
Has anyone come up with a way around this for now? @akvadrako ? |
I spend a day on this and gave up. The singer tap could handle it, but the airbyte adapter would delete the updated config file right away, throwing away the refresh token. I tried to patch the tap and the connector, but there were plenty of issues with incompatible versions since none of the dependencies are versioned. |
@akvadrako so the solution was just to do this outside of Airbyte? |
Yes, in the end we didn't use the airbyte connector. |
@sherifnada can you provide an ETA for this to become available? This is a serious blocker for a while now. |
Any update on this? How can we help? |
I happen to know that Hubspot has rather short-lived oAuth refresh tokens. Is what we do within that connector generalizable? |
@RickRen7575 this isn't yet prioritized... we will comment here when it is! |
Just checking in here! |
We are going to start looking into this in Q4! This is "Support single use refresh tokens" in our roadmap. |
|
That is so great to hear!
…On Wed, Nov 9, 2022 at 2:44 PM Topher Lubaway ***@***.***> wrote:
I talked to @davinchia <https://github.com/davinchia> and @pmossman
<https://github.com/pmossman> to add context on customers effected by
this story
TCS believes this story will still be done this quarter.
—
Reply to this email directly, view it on GitHub
<#3990 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACCP57ST2QFIM7DWLTGZHTLWHP5KVANCNFSM46LXUMKA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
[image: photo]
*Ricky Renner*
Data Engineer, AMEND Consulting LLC
(216) 906-5178
www.linkedin.com/in/ricky-renner
|
Noting that this work will help troubleshoot:
|
So not Quickbooks Online?
…On Wed, Nov 9, 2022 at 5:52 PM Evan Tahler ***@***.***> wrote:
Noting that this work will help troubleshoot:
- Bing Ads: airbytehq/oncall#999
<https://github.com/airbytehq/oncall/issues/999>
- Google Sheets
- Salesforce (maybe)
—
Reply to this email directly, view it on GitHub
<#3990 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACCP57QH3B5YIEMOM5PEZODWHQTKVANCNFSM46LXUMKA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
[image: photo]
*Ricky Renner*
Data Engineer, AMEND Consulting LLC
(216) 906-5178
www.linkedin.com/in/ricky-renner
|
Those are additional issues we see that solving this will /also/ help! |
@pedroslopez I think that it is time to close this epic! The platform and CDK now fully support AirbyteControlMessages to allow connectors to change their configuration. Future work will be done in individual connectors. |
@evantahler is that true as well for the low-code CDK? What authentication do I need to use there to support changing refresh tokens? |
@leo-schick, this isn't available yet with the low-code CDK. You can track the issue here |
Tell us about the problem you're trying to solve
Today we do not handle the case where a new refresh token is returned when a new access token is granted.
This is because there doesn't exist a Protocol message that updates configs. This will probably involve adding a message similar to STATE but updates the config.
Describe the solution you’d like
We should provide a way to save a returned refresh token.
The text was updated successfully, but these errors were encountered: