Bug 1176773 - Support imap.gmail.com and smtp.gmail.com urls in OAuth2. r=mkmelin, a=rkent
authorR Kent James <rkent@caspia.com>
Mon, 22 Jun 2015 18:09:00 +0300
changeset 26176 690b3a6f116ca7c687b74c4139113e3ff3b038c3
parent 26175 8245f250a03fe9ff81bbd5a2ba01c56be42b3050
child 26177 f4ee61ef3b5b5f548c3ee7f5de9fee78886b1726
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin, rkent
bugs1176773
Bug 1176773 - Support imap.gmail.com and smtp.gmail.com urls in OAuth2. r=mkmelin, a=rkent
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