nicolas2k / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
1 stars 0 forks source link

A gmail account added to the cloud console for mirror api cannot use web auth #376

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add gmail account to mirror api in cloud console
2. Generate authorization url that works for other devices
3. Click url and grant authorization

What is the expected output? What do you see instead?

Expect that dialog will request access to view and modify timeline.
Instead, other scopes like email and profile are there, but mirror API is not.

Note, the same code works for a different device that does accept multiple 
users interacting with the timeline.

What version of the product are you using? On what operating system?

2nd gen glassware

Original issue reported on code.google.com by appian.g...@gmail.com on 23 Jan 2014 at 4:53

GoogleCodeExporter commented 8 years ago
Note, for the other account that is functional, both users tested are in the 
same Google Apps domain.  On the device not working, both users are gmail 
accounts.

Original comment by appian.g...@gmail.com on 23 Jan 2014 at 4:54

GoogleCodeExporter commented 8 years ago
If the user had already approved the Mirror API scope for the same project, the 
scope not showing is working as intended with incremental auth:
  https://developers.google.com/accounts/docs/OAuth2WebServer#incrementalAuth

Original comment by ala...@google.com on 23 Jan 2014 at 5:40

GoogleCodeExporter commented 8 years ago
Okay; odd that it's re-requesting email and profile.

If we're testing on different servers and don't have the old auth, then I 
should be using approval_prompt=force&include_granted_scopes=true to make sure 
all bases are covered?

I will test this shortly and return here with results.

Original comment by appian.g...@gmail.com on 23 Jan 2014 at 9:07