On Mon, Jun 11, 2012 at 12:27 PM, Goat666 <[email protected]> wrote:
> For example, this webpage explains how to authenticate using OAuth2.
> http://developer.android.com/training/id-auth/authenticate.html
>
> However, they use "Manage Your Tasks" as the auth scope.  I don't need to
> manage any tasks.  I don't need to view Google Tasks.  I don't need Google
> calendar or Google Talk or anything of the sort.  I merely want an auth
> token to be used by our service to identify a user.  Where can I find a
> comprehensive list of auth scope items?  I want the most basic one possible.

If you want to use Google as an identity provider for your site, you
need to use
OpenID as described here:

https://developers.google.com/accounts/docs/OpenID

There is an option to use OAuth for authentication, which is still experimental:

https://developers.google.com/accounts/docs/OAuth2Login

If you decide to use OAuth2 for authentication you can get the token using
AccountManager. Use one of these token types:

"oauth2:https://www.googleapis.com/auth/userinfo.email";
or
"https://www.googleapis.com/auth/userinfo.profile";

You can validate the token in your webapp by posting it to
https://accounts.google.com/o/oauth2/tokeninfo.

Certainly possible, but might not be trivial depending on what you want
your website to do.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to