android - Invalid Scope When Trying To Create Use GoogleAccountCredential With ARC-Welder on Chrome -
i have android app i'm trying run under chrome arc (via arc-welder). i've created oauth2 ids , changed apk substitute chrome client-id if it's running under arc (build=="chromium"). however, still "invalid_scope" exceptions googleauthutil.gettoken()
.
the actual "scope" value is:
audience:oauth2:client_id:numbers-numbersandletters.apps.googleusercontent.com
the actual exception, hot logcat
is:
com.google.android.gms.auth.googleauthexception: invalid_scope @ com.google.android.gms.auth.googleauthutil.gettoken(unknown source) @ com.google.android.gms.auth.googleauthutil.gettoken(unknown source) @ com.google.api.client.googleapis.extensions.android.gms.auth.googleaccountcredential.gettoken(googleaccountcredential.java:255) ...
the code making request is:
final string clientid = ischromearc() ? chrome_client_id : web_client_id; googlecredential = googleaccountcredential.usingaudience(this, "server:client_id:" + clientid); final string accountname = settingspreferences.getstring(pref_account_name, null); googlecredential.setselectedaccountname(accountname); assert googlecredential.getselectedaccount() != null; assert !googlecredential.getselectedaccount().equals(""); if (googlecredential.gettoken() == null) ... // <== exception here
lastly, meta-data given arc-welder during creation process is:
{ "useplayservices": ["maps"], "crx_key": "mii...verylongbase64string...ab" }
is there different need able connect app-engine "endpoints" or not yet supported?
cross client authentication not supported on arc (just not yet). here related bug tracking.
Comments
Post a Comment