Authenticate with test environments for Salesforce and Stripe
dwwoelfel opened this issue · comments
Salesforce and Stripe both offer "test" authentication flows. These are separate environments with their own data that you can use while developing your integration.
OneGraph now has built-in support for authenticating with these test flows. You'll see new Salesforce [test]
and Stripe [test]
options in the Authentication dropdown in GraphiQL. They're also available when you create server-side tokens from the Server-Side Auth page.
If you're using onegraph-auth
, our npm package, pass true as the third argument to login
, e.g. auth.login('stripe', null, true)
, to log your users in with the test flow.
If you're manually constructing authentication URLs, add test=true
as a query param to the /oauth/start
url.