OAuthServerURL Parameter (Connect-Salesforce Cmdlet)
Specifies the OAuth server URL used during the authentication process.
Syntax
Connect-Salesforce -OAuthServerURL string
Data Type
cstr
Default Value
""
Remarks
When authenticating with OAuth, the cmdlet uses this property to direct authentication requests. In most cases, the cmdlet automatically retrieves this value, and there is no need to set it manually.
When using OAuth authentication, do not specify User, Password, or SecurityToken properties. OAuth credentials and tokens are used instead.
In most configurations, the cmdlet automatically determines the OAuth server URL. This property is not required in typical OAuth setups and is only needed in special cases such as custom domains or government endpoints. However, for organizations that rely on custom authentication endpoints or have specific OAuth infrastructure setups, manually specifying this property ensures connections are routed correctly.
This property is useful when authenticating via OAuth and connecting through a custom Salesforce login endpoint or when troubleshooting environments with unique OAuth configurations.