← Back to team overview

ubuntu-phone team mailing list archive

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

 

Hi all,

As some of you may know, I'm working on a Gmail scope [1] that uses the online accounts Google account for authentication. This works (sporadically) in RTM image 5 on the emulator, but I have been unable to get it to work with images 6 or 7.

Specifically, the scope creates an OnlineAccountClient and goes through the results of get_service_statuses() to find one that's authenticated. If none are found, it uses register_account_login_item() to give the user a button to press to get the account set up.

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've tried restarting the scope, restarting signond, restarting unity8, and restarting the emulator, but the same behavior occurs time and time again. Does this behavior indicated a problem in my scope? If so, how do I go about debugging it? If not, is it a known problem with online accounts?

Thanks,
Robert

[1] https://github.com/rschroll/gmail-scope



Follow ups