#jing-connect-oauth
1 messages · Page 1 of 1 (latest)
Hi 👋
Are you attempting to use OAuth to connect with the existing Express account that was deauthorized?
Hi that's correct
AFAIK OAuth was designed specifically to allow connecting Stand-alone Stripe Accounts to Platforms. In your testing, when you go through the OAuth flow you wind up creating a new Express Account?
Yes, it returns a different account ID
Can you share an example ID for an account that was de-authorized?
Yep. acct_1JAGqhRAMomYhnlB
Thanks, taking a look
Sorry this took a long time
This server has been a little busy
When did the Oauth toke request occur?
Ahh sorry I didn't try to connect this account since I don't recall the phone number and email on this account. I tried reconnect acct_1ODcrFIbtEhaPtt8, also a test account which was deauthorized. The Oauth token request was around 11/19 17:35 to 17:40 PST
Okay thanks, I'll take a look at that one
Now is the ID you provided the new one you got back from the OAuth flow or the old one for this account?
It was the old deauthorized one. The new one is acct_1OEMOhRDHH823MXn
The new Account identified by that ID was created as the result of an API request to create a new account
https://dashboard.stripe.com/test/logs/req_mwDbixIYYp24b4
No email or phone number was provided
Our OAuth flow does not involve creating new Accounts: https://stripe.com/docs/connect/oauth-reference
thanks! so stripe_user[email] and stripe_user[phone_number] must match the deauthorized account?
I'm still confused about what you are trying to do. You only mentioned attempting to reconnect a de-authorized account, but here I see you are creating a new Account object.
sorry maybe I'm not reading this correctly: https://stripe.com/docs/connect/oauth-reference. It appears to me that the first step is getting an authorization code using https://stripe.com/docs/connect/oauth-reference#get-authorize and then use the code returned to get the account ID: https://stripe.com/docs/connect/oauth-reference#post-token. Would it be possible to not create a new account with this flow?
Yes, that is what this flow is for. Connecting to an Account without having to create one.
jing-connect-oauth
thanks @umbral wadi . I think I got what you were saying now. Using the standard oauth https://connect.stripe.com/oauth/authorize, I receive this error message which is expected since standard oauth is disabled.
{"error":{"message":"Standard OAuth is disabled for this Stripe Connect integration. If you own this integration, you can enable the Standard OAuth flow in the Connect Settings page in your dashboard."}} When I use https://connect.stripe.com/express/oauth/v2/authorize it made me go through the sign up process again
I might still be missing something here but it doesn't look like it's possible to do connect oauth for the existing express account?
@fossil quiver if there's a real existing Express account in Live mode that was already connected to your platform before then going trough OAuth will reconnect it. But you can't use another platforms's Express account
I see. Everything I was doing was in test mode and the reason why I wanted to reconnect to the express account deauthorized was because we have quite a few test environments sharing the same Stripe account integration. If it isn't possible to do connect oAuth again for the previously authorized account in test mode, I will just update the account ID in our test databases.
yeah I don't think it works in Test mode
Got it. I'll keep this in mind. @rapid lagoon @umbral wadi Thank you both for your help on this!