← Back to team overview

launchpad-reviewers team mailing list archive

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

 

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

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

Requested reviews:
  Najam Ahmed Ansari (nansari)

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

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 subscribed to branch ~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():