I have a sharepoint app in which I call salesforce REST API.
I have obtained access_token successfully from the app, (using username-password flow) but when I try to access some resources such as https://instance.salesforce.com/services/data/v30.0/sobjects/Account/ID given the access token inside 'Authorization' header attribute, it responds 401 error saying, The remote server returned the following error while establishing a connection - 'Unauthorized'.
But when I use chrome REST client and do the same request with same access_token it works fine.
Note that sharepoint platform call the REST API on behalf of the client.
Is there any authorized list of hosts that can invoke REST API ?
What am I missing ?