Salesforce Sales Cloud - Salesforce Sandbox Environment

The Salesforce sandbox environment has a different base URL from the production environment. Instead of, you log in to When you authenticate a Salesforce instance, you must pass a siteAddress query parameter with the sandbox URL when getting the redirect URL. See Authenticate Through API.