Creating a Custom OAuth Application
Creating a Custom OAuth Application
The following procedure registers a custom OAuth application in the admin console and obtains the OAuth client credentials, the consumer key and consumer secret:- Access Setup.
(If you are connecting from a Desktop application, you can access Setup by logging into Salesforce.com and clicking your user name.) - Open a new application.
- If your organization uses the Salesforce Lightning Experience UI:
- Search for "App" in the Quick Find box.
- Select App ManagerA (not Manage Connected Apps).
- Click New Connected App.
- If your organization uses the Salesforce Classic UI:
- Search for "Apps" in the Quick Find box.
- Under Build or Create, select Apps.
- Under Connected Apps, click New.
- If your organization uses the Salesforce Lightning Experience UI:
- Enter a name to be displayed to users when they log in to grant permissions to your application. Also supply a contact email address.
- Select Enable OAuth Settings.
- Enter a value in the Callback URL box.
- If this is a desktop application, set the Callback URL to http://localhost:33333 or a different port number of your choice.
- If this is a Web application, set the Callback URL to a Website page where you want the user to be returned to, after they have authorized your application.
- Assign the following OAuth scopes:
- Access and manage your wave data (wave_api)
- Access and manage your data (api)
- Perform requests on your behalf at any time (refresh_token, offline_token)
After your application is created, click the new application name. The admin console displays the OAuth client credentials, the consumer key, and consumer secret. Record this information for later use.