Why does Google request that the Oauth scope be included in the XML app manifest?

17 views
Skip to first unread message

antonyaa

unread,
Jan 23, 2012, 6:41:51 PM1/23/12
to google-app...@googlegroups.com
The scope of the app is usually defined in the app code. No?

David Haley

unread,
Jan 23, 2012, 6:53:35 PM1/23/12
to google-app...@googlegroups.com
Well, for starters, it lets the marketplace know what required permissions are, so that it can tell the user what the app will be accessing. It's not like it's going to parse the application code to figure out what scopes are being requested. :-)

Cheers,
- David

Gunjan Sharma

unread,
Jan 24, 2012, 3:47:11 AM1/24/12
to google-app...@googlegroups.com
Hello Antonyaa

As David mentioned in his answer, when building a Marketplace app you have to specify the scopes in the Application Manifest. You can see an example here. Besides this your code will have the scopes as well.

Thanks
Gunjan Sharma
Reply all
Reply to author
Forward
0 new messages