Newer Version Available
Understanding Authentication
Salesforce uses the OAuth
protocol to allow users of applications to securely access data without having to reveal username
and password credentials.
Before making REST API calls, you must authenticate the application user using OAuth 2.0.
To do so, you’ll need to:
- Set up your application as a connected app in the Salesforce organization.
- Determine the correct Salesforce OAuth endpoint for your connected app to use.
- Authenticate the connected app user via
one of several different OAuth 2.0 authentication flows. An OAuth authentication flow defines a
series of steps used to coordinate the authentication process between your application and
Salesforce. Supported OAuth flows include:
- Web server flow, where the server can securely protect the consumer secret.
- User-agent flow, used by applications that cannot securely store the consumer secret.
- Username-password flow, where the application has direct access to user credentials.