OAuth 2.0 (Open Authorization 2.0) is an open standard for access delegation, commonly used to grant third-party applications limited access to a user’s resources without exposing their credentials. It allows secure access to a resource on behalf of a user while maintaining data protection and minimizing security risks. OAuth 2.0 requires a browser for one-time user consent. The user must authorize the application’s request to access their data through a browser. Once consent is granted, the application can use the refresh token to maintain access without requiring further browser-based authentication. Salesforce supports two approaches for configuring OAuth access:
To use OAuth authentication with a custom app, create a Salesforce connected app or an external client app and obtain its Consumer Key and Consumer Secret. |
Obtain OAuth client credentials for connected app connection
A page opens displaying your Consumer Key (Client ID) and Consumer Secret (Client Secret).
|
You can also add additional ports 58997 and 59997.
Configure an external client app for the OAuth 2.0 client credentials flow
In server-to-server authentication, the client application uses the consumer key and consumer secret defined in the external client app to request an access token. You must specify the integration user whose permissions will be used when accessing Salesforce data.
Obtain OAuth client credentials for external client app connection
|