I am trying to get the authorization token from Google+ using their sdk on Android, but it always raises a "Unknown GoogleAuthException"
Here is the code I'm using:
private static final String LOGIN_SCOPES = "https://www.googleapis.com/auth/plus.login " + "https://www.googleapis.com/auth/userinfo.email"; protected static final String SCOPES = "oauth2:server:client_id:" + BuildConfig.GOOGLE_SERVER_CLIENT_ID + ":api_scope:" + LOGIN_SCOPES; String token = GoogleAuthUtil.getToken( getApplicationContext(), Plus.AccountApi.getAccountName(googleApiClient), SCOPES);
I doubled the client_id flag that I received from the Google console.
What really worries is that this code works for my placement style, with intermediate client_id, but for my client_id product that I just created this morning, I cannot get it to work.
Any idea?
source share