To Create a Consumer Key (Salesforce Connector)

A consumer key is required when setting up OAuth 2.0 configurations for the Salesforce connector. It is used by the OAuth 2.0 JWT and SAML bearer configurations and by the OAuth 2.0 Username Password configuration.

This procedure provides guidance on using Salesforce to create a consumer key. It explains how to create a connected app in Salesforce. However, note that the steps might differ somewhat in your Salesforce instance


This procedure assumes that you already have a certification file (such as salesforce-cert.crt). If not, you can produce one by generating a Java KeyStore and Public Key.

  1. Log into Salesforce, and go to Setup > Build > Create > Apps.

  2. Under the Connected App section, click New.

  3. Follow these steps to create a new connected app, and enter the following information in the appropriate fields:

    • A name for the connected app.

    • The API name.

    • Contact email.

  4. Under API (Enable OAuth Settings), select Enable OAuth Settings:  

    • Enter the Callback URL.

    • Select the Use Digital Signatures checkbox.

    • Click Browse (or Choose File), and load your Salesforce certificate (for example, salesforce-cert.crt), which contains your public key.

      In Studio, you typically store this in the workspace that contains your Mule application.

      1. Add and Save these OAuth scopes to Selected OAuth Scopes:

        Full Access (full) and Perform Requests On Your Behalf At Any Time (refresh_token, offline_access)

  5. Configure the Authorization Settings for the app:

    Click Manage. Then under the OAuth Policies section, expand the Permitted Users dropdown, and select Admin Approved Users are Pre-Authorized. Then Save.

  6. Under the Profiles section, click Manage Profiles.

  7. Select your user profile, and then click Save.

  8. Go back to the list of Connected Apps: Build > Create > Apps.

  9. Under the Connected Apps section, select the connected app you created.

You can see the Consumer Key that you need to provide in your connector’s configuration.

In this topic:

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.