0

get access_token once i got request_token from open_id_oauth

Hi,

Basically i am using openid[yahoo mail_id] and oauth[delicious bookmarks] hybrid protocol

Openid part is ok. I got reply as like this

http://example.com/openid?openid.ns=http%3...vel.nist=0&openid.oauth.request_token=jmrW.7tu3AbzmIVmXMlOi9BYIBJ6qvtbm2o6Okpb2dI1zlwBPvHQO
iJHGEqXguOfukJEkqeCY112Z2tlT3YBhT.rdwnSrYWk_viG9SlpwKPuEDDxKD99cRfOFK6aH__NLGL0wU
iY8Ih8D57Vb.0NSiEYCLO67Iy8pNtVcoHM2LC.8cPdYxgzRBEhzEXlMRxsGofViy6iBwJaEn3czBWxKgf
ZTjK9s2Js_MUU
&openid.sig=QHi0gUE3u9UeRL64zXQTnsIDbaM%3D

The above response suggest that request token and some credentials as output.
Once i use the above request token in my next delicious api call i got exception.

access_token call:
https://api.login.yahoo.com/oauth/v2/get_to...umer_key=<my applications consumer key>&oauth_nonce=6951287&oauth_signature_method=plaintext&oauth_timestamp=1294400657&oauth_token=jmrW.7tu3AbzmIVmXMlOi9BYIBJ6qvtbm2o6Okpb2dI1zlwBPvHQOiJHGEqXguOf
ukJEkqeCY112Z2tlT3YBhT.rdwnSrYWk_viG9SlpwKPuEDDxKD99cRfOFK6aH__NLGL0wUiY8Ih8D57Vb
.0NSiEYCLO67Iy8pNtVcoHM2LC.8cPdYxgzRBEhzEXlMRxsGofViy6iBwJaEn3czBWxKgfZTjK9s2Js_M
UU&oauth_version=1.0&oauth_signature=<my applications consumer secret>%26


but i am recieving error message as

oauth_problem = token_rejected

Please help me as soon as possible.
Is any good documentaion available for this part. if any, suggest me.


Thanks

by
3 Replies
  • Here's some PHP sample code that might help from my hybrid auth working sample: https://github.com/jcleblanc/openid-oauth-p...er/complete.php

    The pre-approved request token to OAuth access token exchange process starts at line 45.

    Jonathan LeBlanc
    Twitter: @jcleblanc
    0
  • QUOTE (dhamu @ Jan 7 2011, 05:51 AM) <{POST_SNAPBACK}>
    Hi,

    Basically i am using openid[yahoo mail_id] and oauth[delicious bookmarks] hybrid protocol

    Openid part is ok. I got reply as like this

    http://example.com/openid?openid.ns=http%3...vel.nist=0&openid.oauth.request_token=jmrW.7tu3AbzmIVmXMlOi9BYIBJ6qvtbm2o6Okpb2dI1zlwBPvHQO
    iJHGEqXguOfukJEkqeCY112Z2tlT3YBhT.rdwnSrYWk_viG9SlpwKPuEDDxKD99cRfOFK6aH__NLGL0w
    U
    iY8Ih8D57Vb.0NSiEYCLO67Iy8pNtVcoHM2LC.8cPdYxgzRBEhzEXlMRxsGofViy6iBwJaEn3czBWxKg
    f
    ZTjK9s2Js_MUU
    &openid.sig=QHi0gUE3u9UeRL64zXQTnsIDbaM%3D

    The above response suggest that request token and some credentials as output.
    Once i use the above request token in my next delicious api call i got exception.

    access_token call:
    https://api.login.yahoo.com/oauth/v2/get_to...umer_key=<my applications consumer key>&oauth_nonce=6951287&oauth_signature_method=plaintext&oauth_timestamp=1294400657&oauth_token=jmrW.7tu3AbzmIVmXMlOi9BYIBJ6qvtbm2o6Okpb2dI1zlwBPvHQOiJHGEqXguOf
    ukJEkqeCY112Z2tlT3YBhT.rdwnSrYWk_viG9SlpwKPuEDDxKD99cRfOFK6aH__NLGL0wUiY8Ih8D57V
    b
    .0NSiEYCLO67Iy8pNtVcoHM2LC.8cPdYxgzRBEhzEXlMRxsGofViy6iBwJaEn3czBWxKgfZTjK9s2Js_
    M
    UU&oauth_version=1.0&oauth_signature=<my applications consumer secret>%26


    but i am recieving error message as

    oauth_problem = token_rejected

    Please help me as soon as possible.
    Is any good documentaion available for this part. if any, suggest me.


    Thanks


    Hi Dhamu,

    if you are using yahoo open id and facing problem with OAuth, you can use http://www.nyalog.in. you can implement yahoo openID, and OpenAuth to your website its very easy to implement and manage.
    0
  • QUOTE (Jonathan LeBlanc @ Jan 18 2011, 11:31 AM) <{POST_SNAPBACK}>
    Here's some PHP sample code that might help from my hybrid auth working sample: https://github.com/jcleblanc/openid-oauth-p...er/complete.php

    The pre-approved request token to OAuth access token exchange process starts at line 45.

    Jonathan LeBlanc
    Twitter: @jcleblanc


    you can implement OAuth access from http://www.nyalog.in. i found its a very simple way to implement OAuth in you website you can get PHP code from there. its really work.
    0

Recent Posts

in OpenID General Discussion