Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

docs: update salesforce provider to include managed auth for sandboxes #1988

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions docs/docs/platform/managed-auth.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,10 @@ You can expose an Embedded Link in your application as a link or button so your

#### Embedded Link

An Embedded Link has the following form:
An Embedded Link has the following format:

<Tabs>

<TabItem value="supaglue-cloud" label="Supaglue Cloud" default>

> `https://api.supaglue.io/oauth/connect?applicationId={APPLICATION_ID}&customerId={CUSTOMER_ID}&providerName={PROVIDER_NAME}&returnUrl={RETURN_URL}`
`https://api.supaglue.io/oauth/connect?applicationId={APPLICATION_ID}&customerId={CUSTOMER_ID}&providerName={PROVIDER_NAME}&returnUrl={RETURN_URL}`

</TabItem>

</Tabs>

**Query parameters:**

Expand Down
10 changes: 10 additions & 0 deletions docs/docs/providers/salesforce.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,13 @@ Supaglue provides a redirect URL to send information to your app. To add the red
```
id,api,refresh_token
```

## Managed authentication

There are two types of Salesforce orgs you can connect to: Production and Sandbox.

Production orgs are intended for production usage. Your customers may also have sandbox orgs containing partial or test data. Enterprise Salesforce customers sometimes choose to test the initial integration with your application before going live with their production Salesforce org.

Salesforce uses different [identity URLs](https://help.salesforce.com/s/articleView?id=sf.remoteaccess_using_openid.htm&type=5) for accessing production versus sandbox orgs. The identity URL for production orgs is `https://login.salesforce.com`, whereas the identity URL for sandbox orgs is `https://test.salesforce.com`.

Supaglue lets you connect to both types of Salesforce orgs by configuring the [Embedded Link](/platform/managed-auth/#embedded-link) (or alternatively using our hosted Magic Link). Be sure to pass in the `loginUrl` parameter in the Embedded Link when connecting to sandbox orgs (by default it will assume you are connecting to a production org).