File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ var serviceOrder = []Service{
7171var serviceInfoByService = map [Service ]serviceInfo {
7272 ServiceGmail : {
7373 scopes : []string {
74- "https://mail.google .com/" ,
74+ "https://www.googleapis .com/auth/gmail.modify " ,
7575 "https://www.googleapis.com/auth/gmail.settings.basic" ,
7676 "https://www.googleapis.com/auth/gmail.settings.sharing" ,
7777 },
Original file line number Diff line number Diff line change @@ -189,7 +189,9 @@ func TestScopesForServices_UnionSorted(t *testing.T) {
189189 }
190190 // Ensure expected scopes are included.
191191 want := []string {
192- "https://mail.google.com/" ,
192+ "https://www.googleapis.com/auth/gmail.modify" ,
193+ "https://www.googleapis.com/auth/gmail.settings.basic" ,
194+ "https://www.googleapis.com/auth/gmail.settings.sharing" ,
193195 "https://www.googleapis.com/auth/contacts" ,
194196 "https://www.googleapis.com/auth/contacts.other.readonly" ,
195197 "https://www.googleapis.com/auth/directory.readonly" ,
@@ -241,6 +243,7 @@ func TestScopesForManageWithOptions_Readonly(t *testing.T) {
241243
242244 notWant := []string {
243245 "https://mail.google.com/" ,
246+ "https://www.googleapis.com/auth/gmail.modify" ,
244247 "https://www.googleapis.com/auth/gmail.settings.basic" ,
245248 "https://www.googleapis.com/auth/gmail.settings.sharing" ,
246249 "https://www.googleapis.com/auth/drive" ,
You can’t perform that action at this time.
0 commit comments