tap-rest-api icon indicating copy to clipboard operation
tap-rest-api copied to clipboard

OAuth refresh token support

Open daigotanaka opened this issue 3 years ago • 0 comments

Currently, tap-rest-api doesn't fully support OAuth. It can customize the header, so if the developer can manually obtain the token and if it does not expire, the tap still works with the APIs with OAuth. That isn't the case for most services. OAuth usually implements a refresh token with which we can obtain a new token after the older one expires.

It's probably possible to implement a generic OAuth refresh token flow. If we can achieve this, we just need to set a refresh token in the config, then run the flow to obtain the token.

I recently implemented such flow in PyPardotSF project, and I'm hoping to reuse some of the logic from it.

daigotanaka avatar May 03 '21 07:05 daigotanaka