> ## Documentation Index
> Fetch the complete documentation index at: https://stytch.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Salesforce

> Set up Salesforce OAuth for Consumer Authentication.

## Setup

*Follow these steps if you have not created a Salesforce OAuth client yet.*

1. Navigate to your [Applications](https://stytchinc.lightning.force.com/lightning/setup/NavigationMenus/home) or by going to Setup > App Manager. For more information, check out Salesforce's **Authentication** guide [here](https://help.salesforce.com/s/articleView?id=sf.remoteaccess%5Fauthenticate.htm\&type=5).
2. Create a **New Connected App** with your application name and contact email and phone number.
3. Toggle **Enable OAuth Settings** in the API menu
4. Copy-paste the Redirect URI from the [Dashboard](https://stytch.com/dashboard/oauth) into the **Callback URL** section.
5. Make sure to include at least **Access the identity URL service (id, profile, email, address, phone)** and **Access unique user identifiers (openid)** scopes.
6. Check the **Enable Client Credentials Flow** checkbox.

***

*Follow these steps if you already have an existing Salesforce OAuth client.*

1. Navigate to your project by clicking your application from your organizations [app manager page](https://stytchinc.lightning.force.com/lightning/setup/NavigationMenus/home).
2. Copy-paste the Redirect URI from the [Dashboard](https://stytch.com/dashboard/oauth) into the **Callback URL** section by clicking **Enable OAuth Settings**.
