+ Start a Discussion

Having difficulty setting up oauth

I have 3 Salesforce orgs and I want 1 org to be able to access data in another org
Lets call the orgs
Client1 - the calling org
Client2 - the calling org
Dest1 - the destination org

So in Dest1 I have set up a connected App, no problem, which has a consumer key and a Consumer secret. For the Start URL I just created a quick visualforce page. I guess when the user connects from  Client1  and Client2 orgs they are shown this page.
I then go to the Client1  and Client2 orgs and create a Auth. Provider and I pasted the Consumer Key and Consumer Secret. All the other fields I left blank. Salesforce created a bunch of URLs in the Auth. Provider , 1 was "Existing User Linking URL". So I copied this url that Salesforce created into the browser thinking that this would open up my Start URL vf page and I will now have access to Dest1 org, but instead I got


So something is going wrong
Please help
ShashankShashank (Salesforce Developers) 
Please see if this helps: http://cropredysfdc.com/2013/12/06/salesforce-to-salesforce-using-rest-part-i/