Skip to content
Docs

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.

  1. Create (or use) a Stripe account that has Connect enabled — this is the platform account.
  2. Go to the Connect OAuth onboarding options in the Dashboard and enable onboarding accounts with OAuth in the OAuth settings.
  3. On the same page, copy your client_id (ca_…) — Stripe generates separate live and sandbox/test client_id values; use the one matching the mode you’re connecting in.
  4. 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 with invalid_redirect_uri.
  5. 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.
  6. Choose the scope: read_only (default) or read_write. The connect form sends users to https://connect.stripe.com/oauth/authorize?response_type=code&client_id=…&scope=… (plus a state token for CSRF protection).
  7. After the user approves, exchange the returned code (single-use, valid 5 minutes) at https://connect.stripe.com/oauth/token and persist the stripe_user_id (acct_…) from the response.
  • Stripe deprecates the returned access_token, refresh_token, and stripe_publishable_key: the recommended calling pattern is your platform’s own key plus a Stripe-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.deauthorized webhook events to detect disconnects; deauthorize programmatically via POST https://connect.stripe.com/oauth/deauthorize with client_id and stripe_user_id.

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.