Could not authenticate with DevHubOrg

When trying to create a scratch org from the Copado DX Panel, you might get the error below:

"Could not authenticate with DevHubOrg"

Whenever this happens, check if the org credential selected in the Select a Dev Hub Org field is a sandbox or a production credential. If it is a sandbox org credential, you will not be able to authenticate the scratch org. You must use a production or developer org as the dev hub org.



User-added image

If the org credential selected is the right one, check if the settings below in the Copado DX connected app are correct. You will find Copado DX connected in the org where Copado is installed under the Connected Apps section in the Setup.

User-added image


User-added image

How did we do?