Why is OAuth Flow in Python Producing Null Parameters and Showing "Token Expired" Error?

This topic was automatically generated from Slack. You can find the original thread here.

Hey, just wondering if anyone has setup a working OAuth flow in Python.For some reason, all params we’re sending in are coming out as null. The connect_url also takes us to a page saying “token expired” though it’s definitely not and the connect tokens are rotating during each request. The posted troubleshooting steps have not worked thus far.

Any help would be awesome!

Are you adding the app param on the end of the Connect Link URL?

Btw we’re close to publishing a Python SDK, which should make some of your implementation a bit easier

Ahh, sounds great! Thanks for the reply. By app param, do you mean both the app slug and the slug name? In any particular order ?

Check this out: Connect Link - Pipedream

Got it, thanks! that issue was solved but it seems that after going through auth successfully (i can see myself as an external user in proj → connect) i am only getting back the state parameter and not the connect_id on my client side

I’m not sure I’m following

When i successfully go through the oauth flow, pipedream sends a callback to my app’s redirect with some credentials, right?

Ones that I would be using in each subsequent request from my app

Which redirect, do you mean the redirect_uri that’s defined in the Authorization request in the OAuth flow?

That’s is a Pipedream redirect, since we’re the ones handling the entire authorization flow and access token request, etc

Ah got it, thanks for the help!