https://linen.dev logo
#connector-development
Title
# connector-development
n

Narender Kumar

02/10/2022, 5:18 PM
We are currently developing a REST source (iLevel) that uses OAuth2.0. I have looked through other examples suggested here on Slack, but it seems that all the examples uses a
refresh_token
, and that this is required if I want to use the
OAuth2Authenticator
class in the CDK. My source doesn’t have a refresh token. In my
check()
function, I can do a custom POST request and authenticate no problem. Is there an option to either: 1. Use the OAuth2Authenticator class without a refresh-token somehow. 2. Just do a custom Post in my streams function instead of using the OAuth2Authenticator (like I do in
check()
) 3. Is there just an entirely different way to do this 4. …or am I out of luck and Airbyte simply doesn’t support Oauth2 without refresh tokens?
c

Chris Conradi

02/10/2022, 5:52 PM
Hello @Chris Conradi please take a look in the Marketo connector implementation. It’s an example extending the OAuth class to support connection without the refresh token, see here: https://github.com/airbytehq/airbyte/blob/5bc8ec205e885f1b2624a44f68e6333fa8b8333a[…]integrations/connectors/source-marketo/source_marketo/source.py
I’ll have a look. THANKS!
you can always create a custom authenticator class that works however you need
4 Views