0

Integrating with Yahoo! AX(Attribute Exchange) implementation

Hi,

I have done user authentication using Yahoo OpenID and its working till the step where i get the access token.
Now, Using Yahoo! - AX (Attribute exchange) i need to get user information like email. Can anyone help me by showing a direction how to start because i could not find anything myself.

Regards,
Varun

by
7 Replies
  • Hi Varun,

    From your earlier post, it looks like you'll develop your code
    with .NET. So you can try the DotNetOpenAuth library which supports
    Yahoo! AX:
    http://www.dotnetopenauth.net/

    It also has a forum that specializes in using that library:
    http://groups.google.com/group/dotnetopenid

    Thanks,
    Yu Wang
    0
  • Hi Yu Wang,

    Yes you are right. I a will develop code using .Net.
    I downloaded the latest version of samples from http://www.dotnetopenauth.net/
    but:
    1) the consumers shown as example are Twitter and Google.
    2) There is no mention of Yahoo! AX implementation anywhere.
    3) There is no proper documentation provided for the library too.

    Kindly Help!!

    Regards,
    Varun
    0
  • Hi Varun,

    Sorry I don't use the .NET library before. You can check
    with the library maintainer to see if they support Yahoo!
    AX.

    I would suggest you start integration with Google AX
    first so you can get familiar with the library's usage.
    Then you can change the request to see if it works with Yahoo!
    AX. I hope it will work because both implementations follow
    the AX spec. If you still see any issue after that,
    then please come back and ask your questions.

    Thanks,Yu Wang
    0
  • Hi Yu Wang,

    What is the Yahoo OpenID endpoint Url with which the query string of AX properties will be written like for Google its "https://www.google.com/accounts/o8/ud?openid.assoc_handle=AOQUfjq7X0w......"

    I think i have the query string to be attached; tell me the exact yahoo OpenID endpoint Url


    Regards,
    Varun
    0
  • Hi Varun,

    Yahoo! OP endpoint can be found through the discovery process:
    http://openid.net/specs/openid-authenticat....html#discovery

    Through that process you can also find all the extensions we support.

    FYI, our current endpoint is:
    https://open.login.yahooapis.com/openid/op/auth

    Thanks,
    Yu Wang
    0
  • Hi Yu Wang,

    I got it to work. Yahoo! AX implementation. I can now get the user profile info. 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.
    In the Required field write the sregs 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


    Regards,
    Varun
    0
  • Hi Varun,

    Thanks for the information.

    Thanks,
    Yu Wang
    0

Recent Posts

in OpenID General Discussion