0

OpenID Auth not return request_token

Hi

I'm currently integrating Yahoo OpenID+OAuth into my system to fetch the contacts of an user.
I've encountered a problem while trying to retrieve a request_token.

Here is the steps producing problem:

1. Make a request to https://open.login.yahooapis.com/openid/op/auth. The full request is:
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=http%3A%2F%2Fbkprofile.com
&openid.return_to=http%3A%2F%2Fbkprofile.com%2Fo-auth%2Fget-access-token%2Fprovider%2Fyahoo
&openid.ns.oauth=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Foauth%2F1.0
&openid.oauth.consumer=dj0yJmk9MnphUG82a25sSTA0JmQ9WVdrOWRUWlFZbkZOTXpBbWNHbz
lNQS0tJnM9Y29uc3VtZXJzNyZXQmeD03YQ--

2. Login or click Accept...

3. The window redirects to the defined URL: http://bkprofile.com/o-auth/get-access-token/provider/yahoo with additional parameters

Expected: A 'openid.oauth.request_token' parameter should be included in the URL, as shown in http://developer.yahoo.com/oauth/guide/request-token.html

Actual: No such parameter

So, is there anything that I missed or misunderstood? And how can I get a request_token on behalf of the user?

Thanks.

by
7 Replies
  • QUOTE (Dũng @ Jan 30 2011, 10:58 AM) <{POST_SNAPBACK}>
    Hi

    I'm currently integrating Yahoo OpenID+OAuth into my system to fetch the contacts of an user.
    I've encountered a problem while trying to retrieve a request_token.

    Here is the steps producing problem:

    1. Make a request to https://open.login.yahooapis.com/openid/op/auth. The full request is:
    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=http%3A%2F%2Fbkprofile.com
    &openid.return_to=http%3A%2F%2Fbkprofile.com%2Fo-auth%2Fget-access-token%2Fprovider%2Fyahoo
    &openid.ns.oauth=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Foauth%2F1.0
    &openid.oauth.consumer=dj0yJmk9MnphUG82a25sSTA0JmQ9WVdrOWRUWlFZbkZOTXpBbWNHbz
    lNQS0tJnM9Y29uc3VtZXJzNyZXQmeD03YQ--

    2. Login or click Accept...

    3. The window redirects to the defined URL: http://bkprofile.com/o-auth/get-access-token/provider/yahoo with additional parameters

    Expected: A 'openid.oauth.request_token' parameter should be included in the URL, as shown in http://developer.yahoo.com/oauth/guide/request-token.html

    Actual: No such parameter

    So, is there anything that I missed or misunderstood? And how can I get a request_token on behalf of the user?

    Thanks.


    Hi Dũng
    if you are integrating Yahoo OpenID and OpenAuth porviders so you can use http://www.nyalog.in, i found it is very easy to implement and manage this will really helps you.
    0
  • Btw, here is the redirected URL:

    http://bkprofile.com/o-auth/get-access-token/provider/yahoo?
    openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0
    &openid.mode=id_res
    &openid.return_to=http%3A%2F%2Fbkprofile.com%2Fo-auth%2Fget-access-token%2Fprovider%2Fyahoo
    &openid.claimed_id=https%3A%2F%2Fme.yahoo.com%2Fa%2Fq2g4e0A01cEMI8RToDJer4yUZi1bEVldIg2RZ6JF%239c245
    &openid.identity=https%3A%2F%2Fme.yahoo.com%2Fa%2Fq2g4e0A01cEMI8RToDJer4yUZi1bEVldIg2RZ6JF
    &openid.realm=http%3A%2F%2Fbkprofile.com
    &openid.assoc_handle=uMc_VXfPve23I0BJizO2BjqohX492n9P_0Kus1E6DavP_7_IbYKwjP5h
    qwOsm5Y58kmOnPvLUi7_HAI3J4lQ18m8vD9QbMbOIv6.DtkP3q1NkoBsZrWwxuUpiGmb4JrH
    &openid.response_nonce=2011-01-30T19%3A14%3A19ZALCXhGdLReCcszJgBwxDJleE2l38NyLmiw--
    &openid.signed=assoc_handle%2Cclaimed_id%2Cidentity%2Cmode%2Cns%2Cop_endpoint%2Cresponse_nonce%2Creturn_to%2Csigned%2Cpape.auth_level.nist
    &openid.op_endpoint=https%3A%2F%2Fopen.login.yahooapis.com%2Fopenid%2Fop%2Fauth
    &openid.pape.auth_level.nist=0
    &openid.sig=ZhgwnpX05ou%2FGeN0Ap9LPUB7jAw%3D
    0
  • Hi Dũng,

    The hybrid auth process will revert back to standard OpenID if there was an issue with the OAuth extension part of the request. This usually has to do with the consumer key that was provided in the hybrid extension parameter. Can you check two things:
    - Is the consumer key correct?
    - In the OAuth app that you created to get that key, are the application URL and domain the same as the one that you are using for the example? They need to be.

    If either of those are not the issue can you please provide your application ID and / or GUID please?

    Thanks,
    Jon
    0
  • QUOTE (Jonathan LeBlanc @ Feb 1 2011, 06:01 PM) <{POST_SNAPBACK}>
    Hi Dũng,

    The hybrid auth process will revert back to standard OpenID if there was an issue with the OAuth extension part of the request. This usually has to do with the consumer key that was provided in the hybrid extension parameter. Can you check two things:
    - Is the consumer key correct?
    - In the OAuth app that you created to get that key, are the application URL and domain the same as the one that you are using for the example? They need to be.

    If either of those are not the issue can you please provide your application ID and / or GUID please?

    Thanks,
    Jon


    Hi Jonathan,

    Thanks for your reply

    I've double-checked the consumer key and it's correct. And the application URL is the same as the one above (http://bkprofile.com)
    And my application ID is u6PbqM30

    Thanks
    0
  • Hi Dũng,

    The consumer key "dj0yJmk9MnphUG82a25sSTA0JmQ9WVdrOWRUWlFZbkZOTXpBbWNHbzlNQS0tJnM9Y29uc3VtZXJ
    zNyZXQmeD03YQ--" doesn't exist in our system. Can you please try with another consumer key?

    Thanks,
    Yu Wang
    Yahoo! Membership Team
    0
  • Hello! I have the same problem. When I working with Yahoo PHP SDK it get this error (Debug enabled)
    CODE
    DEBUG OBJECT - Array
    (
    [method] => POST
    [url] => https://api.login.yahoo.com/oauth/v2/get_request_token
    [code] => 401
    [requestHeaders] => Array
    (
    [0] => Accept: application/json
    [1] => Content-Type: application/x-www-form-urlencoded
    )

    [requestBody] => oauth_callback=http%3A%2F%2Fiticket.az%2F&oauth_consumer_key=0pbJa43Wi754atk54BsQ&oauth_nonce=35dfb4c77a7ee7c6bf8a3e83a40e45e9&oauth_signature=aX7WUQl3mnetW8HkI8nWW%2BUQG2A%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1303976910&oauth_version=1.0
    [responseHeaders] => Array
    (
    [Date] => Thu, 28 Apr 2011 07:48:32 GMT
    [P3P] => policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
    [WWW-Authenticate] => OAuth oauth_problem=consumer_key_unknown
    [Connection] => close
    [Transfer-Encoding] => chunked
    [Content-Type] => application/x-www-form-urlencoded
    )

    [responseBody] => oauth_problem=consumer_key_unknown
    )


    But, when I'm working by links
    for example
    CODE
    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=<?php echo urlencode(SITE_HOST);?>
    &openid.return_to=<?php echo urlencode(SITE_HOST.'social/login.html?network=yahoo');?>
    &openid.ns.oauth=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Foauth%2F1.0
    &openid.oauth.consumer=dj0yJmk9V0Q4eDY4YUV1SHRBJnM9Y29uc3VtZXJzZWNyZXQmeD03Zg--

    i get this responce:
    CODE
    openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=id_res&openid.return_to=http%3A%2F%2Fiticket.az%2Fsocial%2Flogin.html%3Fnetwork%3Dyahoo&openid.claimed_id=https%3A%2F%2Fme.yahoo.com%2Fa%2FFsn8yvMolNyPrMkoqN1UgjHVUyiJ%23ff736&openid.identity=https%3A%2F%2Fme.yahoo.com%2Fa%2FFsn8yvMolNyPrMkoqN1UgjHVUyiJ&openid.realm=http%3A%2F%2Fiticket.az%2F&openid.assoc_handle=7jwNs4bdGRGw5wz1zafbGVM03HH1._H.qfV3oxytx5.B6svKyvZWBfx_
    Y7DVOKkUzb56lPJ_9IOp6dEUGeu4AoA9YPh6nA2GJiIzf4RgNvN0x3qH0nm63AahokDsa58-&openid.response_nonce=2011-04-28T07%3A51%3A53Z5Su04SSO60UekQKMknEykjdji5NqZ8UlFA--&openid.signed=assoc_handle%2Cclaimed_id%2Cidentity%2Cmode%2Cns%2Cop_endpoint%2Cresponse_nonce%2Creturn_to%2Csigned%2Cpape.auth_level.nist&openid.op_endpoint=https%3A%2F%2Fopen.login.yahooapis.com%2Fopenid%2Fop%2Fauth&openid.pape.auth_level.nist=0&openid.sig=cRCDtfMdakJxwdzuU4wjPWPO0Pk%3D


    here is no information in this string about responce_token.

    My CONSUMER_KEY, CONSUMER_SECRET, APPID i copied from my own yahoo "Projects" page
    Pls, help
    0
  • Hi Rashad Khalafov,

    Your consumer key "dj0yJmk9V0Q4eDY4YUV1SHRBJnM9Y29uc3VtZXJzZWNyZXQmeD03Zg--"
    doesn't exist in our system. Can you please check your projects list to
    see if you've copied the right consumer key?

    Thanks,
    Yu Wang
    Yahoo! Membership Team
    0
  • http://tsprojects.net/demo/projects/yahooouth/content.php?openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=id_res&openid.return_to=http%3A%2F%2Ftsprojects.net%2Fdemo%2Fprojects%2Fyahooouth%2Fcontent.php&openid.claimed_id=https%3A%2F%2Fme.yahoo.com%2Fa%2FLfeR.ScOuco9dus.6sntxzd4RgLJU4XP%2342b07&openid.identity=https%3A%2F%2Fme.yahoo.com%2Fa%2FLfeR.ScOuco9dus.6sntxzd4RgLJU4XP&openid.assoc_handle=7S4z6wuE_GIzBsguYaRIN7KoMboGHx_m_iT_0vmaXCESUNyXvrw_gBT8d6PNvXi_s91PYhYEHHBczBvsSOJ2SFM906xQxLUyVkVwr0gYUIu_4rYtap4tEwtRt5ZUN2Sc&openid.realm=http%3A%2F%2Ftsprojects.net%2Fdemo%2Fprojects%2Fyahooouth%2Fcontent.php&openid.ns.ax=http%3A%2F%2Fopenid.net%2Fsrv%2Fax%2F1.0&openid.ax.mode=fetch_response&openid.ax.value.email=mohdasif120%40yahoo.com&openid.ax.value.language=en-IN&openid.invalidate_handle=00165b26bbf3ed3f9e940958c02228ef&openid.response_nonce=2012-12-14T10%3A04%3A48Zuk6NeXju9N6E4uMk.iNnov3EONlNJS5Pvg--&openid.signed=assoc_handle%2Cclaimed_id%2Cidentity%2Cmode%2Cns%2Cop_endpoint%2Cresponse_nonce%2Creturn_to%2Csigned%2Cinvalidate_handle%2Cax.value.email%2Cax.type.email%2Cax.value.language%2Cax.type.language%2Cns.ax%2Cax.mode%2Cpape.auth_level.nist&openid.op_endpoint=https%3A%2F%2Fopen.login.yahooapis.com%2Fopenid%2Fop%2Fauth&openid.ax.type.email=http%3A%2F%2Faxschema.org%2Fcontact%2Femail&openid.ax.type.language=http%3A%2F%2Faxschema.org%2Fpref%2Flanguage&openid.pape.auth_level.nist=0&openid.sig=S0NSopNc1BWREmOZXdGq4LboI4Q%3D

    i am integrating yahoo connect in my website -

    Follow : steps -
    1- Click login button 2- login from yahoo then showing Undefined index: openid_oauth_request_token in

    How it can be fixed .. thanks in advance.

    0
  • http://tsprojects.net/demo/projects/yahooouth/login.php

    0
  • http://tsprojects.net/demo/projects/yahooouth/content.php - Response redirecting issue.

    0

Recent Posts

in OpenID General Discussion