2

Can Basic Authentication be used to execute Salesforce REST calls?

For eg: /services/data/vXX.0/sobjects/Contact/

Added Request Header as

Authorization: Basic xxxxxxxxxxxxxxxxx

Tried both of following combinations, but no success.

xxxxxxxxxxxxxxxxx Base64 encoding of username:password

xxxxxxxxxxxxxxxxx Base64 encoding of username:password+securitytoken

1 Answer 1

4

No, Salesforce currently uses OAuth 2.0 for authentication. The only other option is to obtain and submit a user's session Id with each request.

Both methods are detailed in Step Two: Set Up Authorization in the REST API documentation.

There is also Digging Deeper into OAuth 2.0 on Force.com, which you may find helpful.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .