Search code examples
emailauthenticationoauthopenid

Yahoo OpenID + OAuth, how to get users login email


Can anyone provide example on how to get users login email for yahoo by using OpenID + OAuth? I use socialauth so java would would be preferred language.


Solution

  • There is a big problem in Yahoo Oauth system and i suspect you will also going to face same problem as one of my team mate is going through.

    He is facing the following problem in his yahoo email id he has set primary id as his gmail id and when yahoo send back profile information it send back that gmail id as primary email with no information which is the account email id

    So i am not sure how we can fetch the account email id of the logged in user (i.e yahoo email).

    Just to give you an idea you have to get first guid from yahoo and than send a request to the following end point

    http://social.yahooapis.com/v1/user/{guid}/profile?format=json
    

    if you able to access user account email-id please share your findings. FYI: we are using scribe-java API for OAuth

    here is the question posted by my team mate Getting user Email Yahoo Oauth (using Scribe-Java API)