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
osf_teamosf_team 

What are the login endpoints for SOAP and REST flows in case of "My Domain" with "Standard Suffix or Custom Suffix"

Hi Support Team,

I want to know how will be the below mentioned "Without MyDomainName endpoints" in case of below metioned scenario 1 and scenario 2 ?

----------Without MyDomainName endpoints
SOAP Basic Username Password                                :    https://login.salesforce.com/services/Soap/c/51.0
REST Username-Password OAuth Authentication Flow            :    https://login.salesforce.com/services/oauth2/token
REST Web Server OAuth Authentication Flow authorization    :    https://login.salesforce.com/services/oauth2/authorize
REST Web Server OAuth Authentication Flow token             :    https://login.salesforce.com/services/oauth2/token
REST Web Server OAuth Authentication Flow refreshtoken     :    https://login.salesforce.com/services/oauth2/token
 
Also, I have put below endpoints based on my understanding. Please confirm is my understanding correct or not ?

Scenarios 1
----------With MyDomainName and with domain_suffix STANDARD (.my.salesforce.com)
SOAP Basic Username Password                                :    https://himanshu-sbox-ed--sfdcadap.my.salesforce.com/services/Soap/c/51.0
REST Username-Password OAuth Authentication Flow            :    https://himanshu-sbox-ed--sfdcadap.my.salesforce.com/services/oauth2/token
REST Web Server OAuth Authentication Flow authorization        :    https://himanshu-sbox-ed--sfdcadap.my.salesforce.com/services/oauth2/authorize
REST Web Server OAuth Authentication Flow token             :    https://himanshu-sbox-ed--sfdcadap.my.salesforce.com/services/oauth2/token
REST Web Server OAuth Authentication Flow refreshtoken         :    https://himanshu-sbox-ed--sfdcadap.my.salesforce.com/services/oauth2/token

Scenario 2
----------With MyDomainName and with domain_suffix CUSTOM (.cloudforce.com)
SOAP Basic Username Password                                :    https://himanshu-sbox-ed--sfdcadap.cloudforce.com/services/Soap/c/51.0
REST Username-Password OAuth Authentication Flow            :    https://himanshu-sbox-ed--sfdcadap.cloudforce.com/services/oauth2/token
REST Web Server OAuth Authentication Flow authorization        :    https://himanshu-sbox-ed--sfdcadap.cloudforce.com/services/oauth2/authorize
REST Web Server OAuth Authentication Flow token             :    https://himanshu-sbox-ed--sfdcadap.cloudforce.com/services/oauth2/token
REST Web Server OAuth Authentication Flow refreshtoken         :    https://himanshu-sbox-ed--sfdcadap.cloudforce.com/services/oauth2/token

 
ShivankurShivankur (Salesforce Developers) 
Hi osf_team,

The REST or SOAP API calls should work With or Without My Domain Name in the endpoints for OAuth purpose.

Following is the documentation which will give you more specific idea about OAuth Endpoints, since the URL shared in this query are related to it.
https://help.salesforce.com/articleView?id=sf.remoteaccess_oauth_endpoints.htm&type=5

Even when you have custom or standard domain_suffix available for your org domain, its always recommended to use login.salesforce.com to make login calls or OAuth API calls. This will return an endpoint which can be used in integration.

Since, the IPs mentioned in below article are not allowed for cloudforce.com for mobileclients and there are other restrictions too.
Reference: https://help.salesforce.com/articleView?id=000321501&language=en_US&type=1&mode=1

Hope above information helps, Please mark as Best Answer so that it can help others in the future.

Thanks.