OneGraph / onegraph-changelog

Product Changelog for OneGraph using Persisted Queries
https://onegraph.com/changelog
9 stars 4 forks source link

Authenticate with test environments for Salesforce and Stripe #96

Closed dwwoelfel closed 3 years ago

dwwoelfel commented 3 years ago

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.