In This Topic
Supported Authentication methods for Salesforce provider
Salesforce supports OAuth 2.0 authentication for connecting to external applications or services. OAuth 2.0 is a robust and secure authentication framework that enables applications to gain authorized access to Salesforce resources without exposing user credentials. With OAuth 2.0 authentication, developers can authenticate and authorize access to Salesforce APIs using client credentials, ensuring the security and privacy of user data.
To authenticate with Salesforce using OAuth 2.0, follow these steps:
- Obtain OAuth Client Credentials: Register your application with Salesforce to obtain the OAuth client ID and client secret. These credentials uniquely identify your application and are used for authentication.
- Request Access Tokens: Use the OAuth client credentials along with the token endpoint provided by Salesforce to request access tokens. Send a request to the token endpoint with the client ID, client secret, username, password (combined with the security token), and any required parameters. Upon successful authentication, Salesforce will provide an access token, which you'll use to authenticate subsequent API requests.
Connection properties used on each type of authentication
OAuth2 Authentication
- Username: Specifies the Salesforce username for authentication.
- Password: Specifies the Salesforce password for authentication.
- SecurityToken: Specifies the security token associated with the Salesforce account.
- OAuthClientId: Specifies the OAuth client ID for authentication.
- OAuthClientSecret: Specifies the OAuth client secret for authentication.
- OAuthTokenEndpoint: Specifies the OAuth token endpoint for authentication.
- Url: Specifies the Salesforce service URL.