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

Commit

Permalink
docs: update salesforce provider to include managed auth for sandboxes (
Browse files Browse the repository at this point in the history
#1988)

<!-- Please title your PR using conventional commits
(https://www.conventionalcommits.org/en/v1.0.0/): -->

[Describe your change here]

## Test Plan

[Describe test plan here]

## Deployment instructions

[Add any special deployment instructions here]
  • Loading branch information
george-xing authored Nov 28, 2023
1 parent 9017441 commit 6a37a69
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
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).

1 comment on commit 6a37a69

@vercel
Copy link

@vercel vercel bot commented on 6a37a69 Nov 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

supaglue-docs – ./docs

supaglue-docs-git-main-supaglue.vercel.app
supaglue-docs-supaglue.vercel.app
docs.supaglue.com

Please sign in to comment.