Remove obsolete analytics auth scopes
With Firebase taking over analytics, we no longer need to add special
analytics auth scopes anymore. These scopes used to be used for
Developer Services logic, which has been removed.
Issue: b/29830467
Risk:
Very low (added these scopes myself back for a developer service that
has since been removed, see also aog/150367). Firebase flow has been
tested with the auth scopes removed and still functions normally.
Benefit:
Removes unecessary permissions from the login page for new Firebase
users coming online.
Possible concern:
This will cause anyone who is logged in to be logged out once they
upgrade to Android Studio 2.2.
Change-Id: I0d134b59f1554745ef8744503dca7468e6532307
(cherry picked from commit 7a5aba89744b4d4e1b52414a9d67181114592a7c)
diff --git a/google-login-plugin/src/com/google/gct/login/OAuthScopeRegistry.java b/google-login-plugin/src/com/google/gct/login/OAuthScopeRegistry.java
index 04dea9c..db02ade 100644
--- a/google-login-plugin/src/com/google/gct/login/OAuthScopeRegistry.java
+++ b/google-login-plugin/src/com/google/gct/login/OAuthScopeRegistry.java
@@ -33,9 +33,6 @@
scopes.add("https://www.googleapis.com/auth/appengine.admin");
scopes.add("https://www.googleapis.com/auth/cloud-platform");
scopes.add("https://www.googleapis.com/auth/projecthosting");
- scopes.add("https://www.googleapis.com/auth/analytics");
- scopes.add("https://www.googleapis.com/auth/analytics.edit");
- scopes.add("https://www.googleapis.com/auth/analytics.readonly");
scopes.add("https://www.googleapis.com/auth/fetch-as-google");
SCOPES = Collections.unmodifiableSortedSet(scopes);
}