| Login URL Type | Supported in Government Cloud? |
| General Salesforce login URL
login.salesforce.com test.salesforce.com | Not Supported |
| Instance-specific URL
e.g. na1.salesforce.com or cs1.salesforce.com | Sometimes Supported* |
| MyDomain URL
e.g. MyDomain.my.salesforce.com | Always Supported |
| NOTE: Because login.salesforce.com and test.salesforce.com are not supported for logging in to Government Cloud, password reset requests submitted through either of these sites do not work for Government Cloud users. To request a password reset for a Government Cloud user login, please use the password reset function from one of the supported types of Gov Cloud login URLs listed above, or log a case with Salesforce Support. |
For authorizing an org using OAuth 2.0 with Salesforce DX, you would need to use the correct My Domain or instance URL for the --instanceurl parameter. However, the audience value separately still must be login.salesforce.com (for production) or test.salesforce.com (for sandbox).
To resolve this, before running the "sfdx force:auth:jwt:grant" command, run one of the following commands to manually set the audience depending on if you are connecting to Production or Sandbox:
export SFDX_AUDIENCE_URL=https://login.salesforce.com/
export SFDX_AUDIENCE_URL=https://test.salesforce.com/
For more information, see Authorize an Org Using the JWT-Based Flow
000386092

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.