Salesforce supports the use of OAuth to allow access to Salesforce.com through its API. OAuth is a standard protocol that allows for secure API authorization. One benefit of OAuth is that users do not need to disclose their Salesforce credentials and the Salesforce administrator can revoke the consumer's access at any time.
To enable OAuth as the authentication type for a Salesforce connection, follow these steps:
Enter the production or test URL as instructed on the screen for these required fields:
. Salesforce provides dedicated URL that handles authorization. Enter the URL for either the production or test environment to access with this connection.
Token Request URL
. Salesforce provides a dedicated URL that handles token requests. Enter the URL for either the production or test environment to access with this connection.
, enter the number of minutes you want to maintain each session opened for this connection.
to start the authorization process.
To successfully launch the authorization process, popups must be enabled in your browser. After you start the authorization process, you can cancel it prior to completion (by closing the dialog box. In that case, the previous state (authorized or not authorized) is unchanged.
If prompted, enter the Username and Password at the Salesforce login page and click
Log In to Salesforce
After your login is validated, the following window appears:
to complete the authorization.
In the Salesforce Connection properties, an
message similar to the following appears:
You must complete the authorization process within 3 minutes. Otherwise, it times out. If that occurs, return to the connection properties and click
The authorization remains active as long as the connection is published, provided that OAuth access was not revoked in Salesforce. After a session duration expires, it is automatically renewed in the background.
Salesforce Connected App Settings
Depending on the type of OAuth access enabled by the Salesforce administrator, you may be able to self-authorize or have pre-authorization. That option is determined by the Salesforce Connected App settings shown here:
To learn more, refer to the Salesforce documentation.