← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~ines-almeida/gdpro:update-login-url into ~nansari/gdpro:launchpad-automation-salesforce

 

Ines Almeida has proposed merging ~ines-almeida/gdpro:update-login-url into ~nansari/gdpro:launchpad-automation-salesforce.

Commit message:
Update OAuth URL to login directly to the canonical domain

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~ines-almeida/gdpro/+git/gdpro/+merge/448999

This makes it so that the login link directly logs in to the canonical domain instead of having to select "Use Custom Domain", enter "canonical" in the textbox, and select "Continue".

-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~ines-almeida/gdpro:update-login-url into ~nansari/gdpro:launchpad-automation-salesforce.
diff --git a/salesforce_oauth.py b/salesforce_oauth.py
index 66303dc..6e5bea0 100644
--- a/salesforce_oauth.py
+++ b/salesforce_oauth.py
@@ -5,7 +5,7 @@ from http.server import ThreadingHTTPServer, BaseHTTPRequestHandler
 
 import requests
 
-SALESFORCE_OAUTH_BASE = ("https", "login.salesforce.com", "/services/oauth2/", "", "", "")
+SALESFORCE_OAUTH_BASE = ("https", "canonical.my.salesforce.com", "/services/oauth2/", "", "", "")
 
 
 def get_session():