Setting up Stripe Connect OAuth (Standard accounts)
This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.
Distilled from Stripe’s own documentation: Using OAuth with Standard accounts and the OAuth reference. Retrieved 2026-07-03.
> Superseded for new platforms. Stripe states: “OAuth isn’t recommended for new Connect platforms. We recommend using Connect Onboarding for Standard accounts instead.” Use this auth system only for existing OAuth integrations or extensions. Since June 2021, platforms using read_write cannot connect to Standard accounts controlled by another platform.
- Create (or use) a Stripe account that has Connect enabled — this is the platform account.
- Go to the Connect OAuth onboarding options in the Dashboard and enable onboarding accounts with OAuth in the OAuth settings.
- On the same page, copy your
client_id(ca_…) — Stripe generates separate live and sandbox/testclient_idvalues; use the one matching the mode you’re connecting in. - Still on that page, register every redirect URL your integration uses, exactly as shown on the connect form. If the authorize request omits
redirect_uri, Stripe defaults to the first configured address; if it sends one, it must exactly match a configured URL or the request fails withinvalid_redirect_uri. - Note the OAuth client’s token-endpoint credential: there is none — token and deauthorize requests authenticate with the platform’s own secret API key (mode-matched to the authorization code) as the HTTP Basic username. Have a
sk_test_/sk_live_(or restricted) key ready per the api-key guide. - Choose the scope:
read_only(default) orread_write. The connect form sends users tohttps://connect.stripe.com/oauth/authorize?response_type=code&client_id=…&scope=…(plus astatetoken for CSRF protection). - After the user approves, exchange the returned code (single-use, valid 5 minutes) at
https://connect.stripe.com/oauth/tokenand persist thestripe_user_id(acct_…) from the response.
Operational notes
Section titled “Operational notes”- Stripe deprecates the returned
access_token,refresh_token, andstripe_publishable_key: the recommended calling pattern is your platform’s own key plus aStripe-Account: <stripe_user_id>header (OAuth reference). - Consuming an authorization code twice revokes the account connection — never retry a code exchange blindly.
- Listen for
account.application.deauthorizedwebhook events to detect disconnects; deauthorize programmatically viaPOST https://connect.stripe.com/oauth/deauthorizewithclient_idandstripe_user_id.
Connect it to Publicus
Section titled “Connect it to Publicus”Open Connections under Credentials, choose Stripe, and pick Stripe Connect OAuth (Standard accounts). Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.
See also: Stripe in the catalog.
This guide is maintained by Publicus and published under CC BY 4.0.