← Back to team overview

ubuntu-phone team mailing list archive

Re: [Scope] Failure to authenticate with online accounts on recent emulator images

 

On 11/17/2014 11:40 PM, Robert Schroll wrote:
[...]
On images 6 and 7, the button is always shown, and pressing it always
leads to a Google login page.  This occurs whether or not there's a
Google account already created, and whether or not the scope is allowed
to use this.  If the login page is filled out, another Google account is
created in online accounts (with the scope's access enabled), but the
scope will never use it.

I suspect that there might be something wrong with the parameters you pass to the OnlineAccountsClient constructor: indeed, the service-type parameter there should not be "email", but the same value you have in the <type> element of your .service file. Though, I doubt that this can be the reason for the bug you are experiencing. And it's especially weird that this works on image 5 and not in the later ones; maybe something changes in unity-scopes-api?

Anyway, one way to debug the issue is to type these commands from a (ssh) terminal on the device, after you made sure that online-accounts-service is not running:

  export UOA_LOGGING_LEVEL=2
  export UOA_DAEMON_TIMEOUT=9999
  online-accounts-service

and then try logging in again. You should see some output on the terminal, and one of the first lines will show the parameters which were passed to Online Accounts; the "application" and "provider" parameters in there are especially interesting: make sure that "provider" is "google" and that the "application" matches your SCOPE_INSTALL_NAME.

Ciao,
  Alberto



Follow ups

References