Bug 1176773 - Support imap.gmail.com and smtp.gmail.com urls in OAuth2. r=mkmelin a=IanN for SeaMonkey 2.35 CLOSED TREE SEAMONKEY_2_35_RELEASE_BRANCH
authorR Kent James <rkent@caspia.com>
Mon, 22 Jun 2015 18:09:00 +0300
branchSEAMONKEY_2_35_RELEASE_BRANCH
changeset 31176 ff8791041841bc1019f456da99d414bf81cc4840
parent 31174 e70cf3ae7723ba1cfaa7a0f4d0404e5337b1195a
child 31177 09008d5431802c9a52eb942d9d1ee1ef244425da
push id1
push userclokep@gmail.com
push dateMon, 07 May 2018 22:45:56 +0000
treeherdercomm-esr60@57eacde5ef40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin, IanN
bugs1176773
Bug 1176773 - Support imap.gmail.com and smtp.gmail.com urls in OAuth2. r=mkmelin a=IanN for SeaMonkey 2.35 CLOSED TREE
mailnews/base/util/OAuth2Providers.jsm
--- a/mailnews/base/util/OAuth2Providers.jsm
+++ b/mailnews/base/util/OAuth2Providers.jsm
@@ -8,16 +8,18 @@
 var EXPORTED_SYMBOLS = ["OAuth2Providers"];
 
 const {classes: Cc, interfaces: Ci, results: Cr, utils: Cu} = Components;
 
 // map of hostnames to [issuer, scope]
 const kHostnames = new Map([
   ["imap.googlemail.com", ["accounts.google.com", "http://mail.google.com/"]],
   ["smtp.googlemail.com", ["accounts.google.com", "http://mail.google.com/"]],
+  ["imap.gmail.com", ["accounts.google.com", "http://mail.google.com/"]],
+  ["smtp.gmail.com", ["accounts.google.com", "http://mail.google.com/"]],
 ]);
 
 // map of issuers to appKey, appSecret, authURI, tokenURI
 
 // For the moment, these details are hard-coded, since Google does not
 // provide dynamic client registration. Don't copy these values for your
 // own application--register it yourself. This code (and possibly even the
 // registration itself) will disappear when this is switched to dynamic