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
netspidernetspider 

Using oAuth and Connected Apps Im trying to connect a Production org with a sandbox in a separate org

I setup oAuth and a Connected App with 2 Production orgs and that worked no problem. But when Im trying to connect a Production org with a sandbox in a separate org and Salesforce asks for authentication during the setup by logging into the destination org I receive an error
"We can’t log you in because of an authentication error. For help, contact your Salesforce administrator."
All credntials are correct.
Im using the Callback URL in the auth provider and entering into the connected app in the sandbox org.
Ive entered the correct Consumer Key and Consumer Secret
Ive entered the correct Authorize Endpoint URL and Token Endpoint URL

So it seems there is a problem connecting a Production org with a sandbox in a separate org

Can anyone help?