Hi,
If you want to extract Yahoo! User profile info like email,name,etc using
Yahoo! OpenID AX Implementation this is the way:
This is the URL with the parameters:
https://open.login.yahooapis.com/openid/op/auth?
openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select
&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select
&openid.mode=checkid_setup
&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0
&openid.realm=##Your Domain name##
&openid.return_to=##Your Return URL##
&openid.ns.oauth=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Foauth%2F1.0
&openid.oauth.consumer=##Consumer Key##
&openid.ns.ax=http%3A%2F%2Fopenid.net%2Fsrv%2Fax%2F1.0
&openid.ax.mode=fetch_request
&openid.ax.required=email,fullname,nickname
&openid.ax.type.email=http%3A%2F%2Faxschema.org%2Fcontact%2Femail
&openid.ax.type.fullname=http%3A%2F%2Faxschema.org%2FnamePerson
&openid.ax.type.nickname=http%3A%2F%2Faxschema.org%2FnamePerson%2Ffriendly
You can only get specific fields from a persons profile as given
here.
Property name => schema address"nickname" => "http://axschema.org/namePerson/friendly",
"fullname" => "http://axschema.org/namePerson",
"email" => "http://axschema.org/contact/email",
"gender" => "http://axschema.org/person/gender",
"language" => "http://axschema.org/pref/language",
"timezone" => "http://axschema.org/pref/timezone",
"image" => "http://axschema.org/media/image/default"
In the Required field write the property name (comma seperated) (like openid.ax.required=email,fullname,nickname)
and then give the schema also (like openid.ax.type.email=http%3A%2F%2Faxschema.org%2Fcontact%2Femail)
Rest parameters need not be changed except for giving your realm,Return Url and Consumer Key
You will get the desired info in the QueryString of your Response
For any help, feel free to contact me.
Regards,
Varun