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

Update OAuth instructions to use curl to get refresh token #1858

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

thena-seer-sfg
Copy link
Contributor

@thena-seer-sfg thena-seer-sfg commented Sep 30, 2024

Summary

The current instructions are incorrect. The code received in the redirect url is not a refresh token but a short-term authorization code, and the tap fails when it tries to use it as one. In order to get a refresh token, there is a code exchange step. The easiest way to do this is using curl, so I've added this step to the instructions.

This is based on Harvest's documentation: https://help.getharvest.com/api-v2/authentication-api/authentication/authentication/#oauth2-authorization-flow

I have also opened this PR in the source repo, where it seems these instructions were copied from: singer-io/tap-harvest-forecast#28

Test plan

Follow the updated instructions when setting up the extractor in meltano. Verify meltano config tap-harvest-forecast test confirms the validity of the configuration.

Copy link

netlify bot commented Sep 30, 2024

Deploy Preview for meltano-hub ready!

Name Link
🔨 Latest commit a78eb75
🔍 Latest deploy log https://app.netlify.com/sites/meltano-hub/deploys/66fadf98a0cf510008f8c608
😎 Deploy Preview https://deploy-preview-1858--meltano-hub.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@edgarrmondragon edgarrmondragon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @thena-seer-sfg!

@edgarrmondragon edgarrmondragon enabled auto-merge (squash) September 30, 2024 17:27
@edgarrmondragon edgarrmondragon merged commit 5b246ba into meltano:main Sep 30, 2024
12 of 13 checks passed
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

Successfully merging this pull request may close these issues.

2 participants