Accessing alternate email addresses for a Google Account using oauth
Asked Answered
D

0

8

A Google account can have multiple email address associated with. e.g [email protected] can be an email address associated with a Google account, however if a user has Gmail setup, then the Gmail address becomes the primary email address associated with that account. So in the above case, the Google account in question will have [email protected] as the primary email address; and [email protected] and [email protected] as secondary email addresses.

I wish to authenticate the user using [email protected] email address, but the token generated via Google OAuth and verified using the JSON object returned at https://www.googleapis.com/oauth2/v1/userinfo?access_token=generated-token only returns the primary email address.

Is there a way to identify this email address? somenewcompany.com is not a oauth provider.

Dylan answered 11/9, 2013 at 23:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.