Search code examples
openidoauthgdata-apiauthsub

How does one retrieve the email address of a user with GData?


I'm trying to use GData to retrieve the email address, real name, and profile URL of the user that just authorized my site using Google OAuth.

We know how to request it using Google's OpenID flow, but the OpenID flow has the severe limitation that we have to ask for a Google Apps user's domain before we know where to send them to log in. At least using OAuth (or even AuthSub), the user gets prompted for which of their Google accounts to log in.


Solution

  • Still not clear that this is possible, but we now work around it by using the OpenID flow. With the addition of their universal login flow, we no longer have reason to avoid their OpenID flow.