---
title: "How to register a Salesforce developer app and get OAuth 2 credentials"
img: https://s3.us-east-2.amazonaws.com/unified-article-images/how_to_register_a_salesforce_developer_app_and_get_oauth_2_credentials-icon.png
date: 2023-02-12T00:00:00.000Z
tag: Guides
description: "In this guide, we'll walk you through how to register a Salesforce developer app to get the OAuth 2 credentials you'll need to be a Salesforce integration for..."
url: "https://docs.unified.to/guides/how_to_register_a_salesforce_developer_app_and_get_oauth_2_credentials"
---

# How to register a Salesforce developer app and get OAuth 2 credentials
------
_February 12, 2023_

In this guide, we'll walk you through how to register a Salesforce developer app to get the OAuth 2 credentials you'll need to be a Salesforce integration for your product. Whether you're planning to build a custom-code integration or using a Unified API solution like [Unified.to](https://unified.to/), retrieving your OAuth 2 credentials is the first step in the process of integrating with Salesforce. 


We'll also added directional for existing Unified.to users that are leveraging our Unified CRM API for a faster integration development process. 


## What is a Salesforce Developer App?


A Salesforce developer app is a container for one or more developer apps. A developer app is an application that can access Salesforce data or functionality through the Salesforce REST, SOAP, or Streaming APIs.



A connected app defines the following information:

- The name and logo of the app
- The OAuth settings for the app, such as the callback URL, the scopes, and the refresh token policy
- The API version and the endpoints for the app
- The user profiles or permission sets that can access the app
By registering a developer app, you can generate a client ID and a client secret, which are the credentials you'll need to authenticate your requests to the Salesforce APIs

## Step 1: Register a Salesforce developer app


To register a Salesforce developer app, you'll need a Salesforce developer account. If you don't have one, sign up for free at [https://developer.salesforce.com/signup](https://developer.salesforce.com/signup).
Once you have a developer account, follow these steps to register a developer app:

1. Log in to your Salesforce developer account and go to **Setup**

    ![image.png](https://s3.us-east-2.amazonaws.com/unified-article-images/how_to_register_a_salesforce_developer_app_and_get_oauth_2_credentials-0.png)

2. In the Quick Find box, search for **App Manager** and click on it
3. Click on the **New External Client App** button
4. Fill in the basic information for your app, such as the name, contact email, and logo URL
5. Select `Packaged` in **Distribution State**
6. In the API (Enable OAuth Settings) section, check the **Enable OAuth Settings** checkbox
7. Enter the callback URL for your app (this is the URL that Salesforce will redirect the user to after they authorize your app). For [Unified.to](https://unified.to/) users, the callback URL needs to be `https://api.unified.to/oauth/code`, `https://api-eu.unified.to/oauth/code` or `https://api-au.unified.to/oauth/code`.
8. Select the OAuth scopes for your app (these are the permissions that your app will request from the user). To set up [Unified.to](https://unified.to/) successfully you'll need to add these OAuth Scopes: `Manage user data via APIs (api)` and `Platform requests at any time (refresh_token, offline_access)`.  If you are also going to use Salesforce to sign-in your users into your application, then also set the `openid`,`profile`,`email`scopes.

    ![image.png](https://s3.us-east-2.amazonaws.com/unified-article-images/how_to_register_a_salesforce_developer_app_and_get_oauth_2_credentials-1.png)

9. Next, enable the following options for you app:
    1. Enable Authorization Code and Credentials Flow
    2. Require user credentials in the POST body for Authorization Code and Credentials Flow
    3. Require Secret for Web Server Flow
    4. Require Secret for Refresh Token Flow
10. Do NOT enable CODE CHALLENGE (Require Proof Key for Code Exchange (PKCE) Extension for Supported Authorization Flows)

    ![image.png](https://s3.us-east-2.amazonaws.com/unified-article-images/how_to_register_a_salesforce_developer_app_and_get_oauth_2_credentials-2.png)

11. Click **Create**
12. Next click **Edit** under **Policies** tab

    ![image.png](https://s3.us-east-2.amazonaws.com/unified-article-images/how_to_register_a_salesforce_developer_app_and_get_oauth_2_credentials-3.png)

13. Set 'Refresh token is valid until revoked' and click **Save**

    ![image.png](https://s3.us-east-2.amazonaws.com/unified-article-images/how_to_register_a_salesforce_developer_app_and_get_oauth_2_credentials-4.png)

14. Lastly, go to Settings tab and retrieve you 'Consumer Key' (client ID) and 'Consumer Secret' (client secret).You will need these credentials to activate your Salesforce integration in [Unified.to](https://unified.to/).

    ![image.png](https://s3.us-east-2.amazonaws.com/unified-article-images/how_to_register_a_salesforce_developer_app_and_get_oauth_2_credentials-5.png)


## Step 2: Use Unified.to to Simplify Integration Development


Using Salesforce APIs directly can be a complex and time-consuming process, especially if you plan to integrate with other leading CRM platforms like HubSpot, ActiveCampaign, and Copper. Without Unified.to, you'll be tasked with handling authentication, error handling, rate limiting, data mapping, and the synchronization logic for each individual integration. 


[Unified.to](https://unified.to/) simplifies this entire process, providing SaaS developers with a unified set of APIs, data models, and webhooks for 20+ CRM integrations. Add all the CRM integrations on your roadmap in a matter of hours. 


## Step 3: Activate Salesforce in Unified.to (for Unified.to users) 

1. [Log in](https://app.unified.to/login) and navigate to [**Active Integrations**](https://app.unified.to/integrations)
2. Use the search bar or click the **CRM** tab to select **Salesforce**
3. Click **Activate** on Salesforce
4. Enter the information from the previous step (client ID, client secret)

Once you've activated Salesforce along with other integrations, you'll be able to add integrations to your product using our low-code authorization UI embed. 


## One API to integrate them all


You're reading this article on the [**Unified.to**](https://unified.to/) blog. We're a Unified API developer platform for SaaS customer-facing integrations. We're excited to continue to innovate at Unified.to and solve hard, critical integration-related problems for our customers. If you're curious about our integrations-as-a-service solution, consider [**signing up for a free account**](https://app.unified.to/login?utm_source=blog&utm_medium=blog_signup_salesforce&utm_campaign=blog_signup&utm_id=blog_signup) or [**meet with an integrations expert**](https://calendly.com/michelle-unified/discovery-via-blog)**.**