To connect Salesforce to magnews and enable secure data exchange, you need to register an application in Salesforce. This configuration allows magnews to access information through secure authentication, without sharing user passwords.
In this guide, you will learn how to create an External Client App in Salesforce and configure it correctly to complete the integration with magnews.
Before you start: retrieve the Redirect URI from magnews
Before configuring Salesforce, you need to retrieve the Redirect URI from magnews, as it will be required during the app creation process.
From the menu Connect > Salesforce > Configuration, click on Server Digital Certificate Settings and note the value shown in the Redirect URI to configure field.
This address represents the endpoint where Salesforce will send the authorization response after authentication.
Create an External Client App in Salesforce
The configuration is performed directly in Salesforce. The steps may vary slightly depending on interface updates, but the overall logic remains the same.
1. Access the App configuration
Log in to Salesforce and click on Setup (gear icon).
In the Setup search bar, type App Manager.
Select New External Client App.
2. Configure the main information
- App Name: enter
magnews - API Name: leave the default value or enter
magnews - Contact Email: enter a valid email address
3. Enable OAuth authentication
In the authentication section:
- Enable the option Enable OAuth Settings
- In the Callback URL field, paste the Redirect URI copied from magnews
The URL will look similar to:https://be-mn1.mag-news.it/be/oauth/client
4. Select the OAuth scopes
Add the following OAuth scopes:
- Manage user data via APIs (api)
- Perform requests at any time (refresh_token, offline_access)
5. Create the app and copy the keys
Click Create.
Once the app has been created, go to Settings > OAuth Settings and click on Consumer Key and Secret.
Copy the generated values (Client ID and Client Secret) and enter them in the magnews digital certificate, in the same section where you previously retrieved the Redirect URI, using the corresponding magnews fields ClientID and Secret Key.