function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

OAUTH 2.0 Authentication

Hi ,

Is there any PDf that i can refer to , to create my webservice in salesforce.?

Also Im not able to setup my OAuth, when i go to Develop > Remote Access , it says "Remote access objects have been moved to applicaion.You'll be redirected to teh page in five seconds, or you can click Tke me there to go now".

Please Help.


Hey Amy,

Not exactly a PDF :) but the following online content should prove helpful in learning how to create your Web Service:

For the OAuth issue you are facing, Remote Access objects have been moved under Name | Setup | App setup | Create | Apps | Under connected apps | New so you can go to this location and proceed..

Hope the info helps!


Hi Sonam,


Previously in Remote Access object, I can enter Callback URL and get Client ID and Consumer Secret key once the app is created. But in the newer option under Name | Setup | App setup | Create | Apps | Under connected apps | New, there is no such thing, can you please throw some light on it?? 


Example of older Remote Access screen can be seen in this page -


Any help would be much appreciated. 




If you try to add a  new Connected App from Name | Setup | App setup | Create | Apps | Under connected apps | will see an OAuth Setting Section where you can put in your Callback URL and once you save the Connected App you will see the Client ID and Consumer Secret key.


Screen shot for reference:


Hope this helps!



Thanks Sonam_SDFC, that solved the problem of Authentication. But I am running into one more problem related to Auth. I am using REST API as per instr given at


I am able to do everything for the Account object as listed in there but when I try to access access LoginHistory object, it throws up an error that the resource does not exsist. I have given FULL scope for the connected app I created.


The command I am using is  curl -H 'Authorization: Bearer access_token' -H "X-PrettyPrint:1" with access_token replaced with the my own access_token/session id. I am getting the following response, 


"message" : "The requested resource does not exist",
"errorCode" : "NOT_FOUND"


Any input?

Mohith Kumar ShrivastavaMohith Kumar Shrivastava

In version 20 the API call was not supported and hence the error.


Chnage the version to 28.0 and that should solve your issue .


The version will be 28.0 for login history .