Creating a Custom External Client Application
You can create your own External Client Application directly in Salesforce. This gives you full control over the OAuth configuration.
For more in-depth guidance on the following steps, see Create an External Client App in the Salesforce Help.
-
In Setup, find and select External Client App Manager.
-
Click New External Client App to begin creating your custom application.
-
Enter Basic Information as follows:
-
External Client App Name: Enter a descriptive name for your application
-
API Name: This will auto-populate based on the name
-
Contact Email: Enter a valid contact email address
-
Distribution State: Select Local
-
-
Scroll down and expand the API (Enable OAuth Settings) section.
-
Select the Enable OAuth checkbox.
-
Enter the following in the Callback URL text field:
(These values cover your production and sandbox (test.salesforce.com) environments).
Copyhttps://account.mcp.altify.dev/callback
https://write.mcp.altify.dev/callback
https://salesforce.mcp.altify.dev/callback
https://retrieve.mcp.altify.dev/callback
https://analysis.mcp.altify.dev/callback
https://account.mcp.altify.dev/test.salesforce.com/callback
https://write.mcp.altify.dev/test.salesforce.com/callback
https://salesforce.mcp.altify.dev/test.salesforce.com/callback
https://retrieve.mcp.altify.dev/test.salesforce.com/callback
https://analysis.mcp.altify.dev/test.salesforce.com/callback -
Move the following from Available OAuth Scopes to Selected OAuth Scopes:
-
Access the identity URL service (id, profile, email, address, phone)
-
Manage user data via APIs (api)
-
Perform requests at any time (refresh_token, offline_access)
-
Access unique user identifiers (openid)
-
-
Scroll down to the Security pane and ensure the following settings are selected:
-
Require secret for Web Server Flow
-
Require Proof Key for Code Exchange (PKCE) extension for Supported Authorization Flows
-
Enable Refresh Token Rotation
-
-
Click Create.
-
After creating your ECA, you will be taken to the application's management page. Select the Policies tab and click the Edit button.
-
Expand the OAuth Policies section and in the App Authorization panel, set IP Relaxation to Enforce IP restrictions, but relax for refresh tokens.
-
Click Save.
Next you need to obtain your ECA's consumer key and secret. This will be required when you connect your AI assistant to the Altify MCP servers.
-
Click the Settings tab of your ECA.
-
Expand the OAuth Settings section.
-
Click the Consumer Key and Secret button.
-
You may be required to verify your account using a Verification Code that is emailed to you.
-
On the Consumer Details page, you can Copy the Consumer Key and Consumer Secret for your External Client App.
The Consumer Key is your OAuth Client ID and the Consumer Secret is your OAuth Client Secret. Store these values securely until you configure the MCP server connection in your AI platform (see Creating the Altify MCP Server Apps in ChatGPT).