0

quest about check_authentication

hi , i am trying to Get a Pre-approved Request Token ( http://developer.yahoo.com/oauth/guide/request-token.html ) , i got response like this
CODE
openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0
&openid.mode=id_res
&openid.return_to=http%3A%2F%2Fopen.wasabii.com.tw%2FYahooOpenIDOAuth.aspx
&openid.claimed_id=https%3A%2F%2Fme.yahoo.com%2Fa%2FxeojMt0SoZt3aqPHpxoSY2zTk6Y-%234bc5b
&openid.identity=https%3A%2F%2Fme.yahoo.com%2Fa%2FxeojMt0SoZt3aqPHpxoSY2zTk6Y-
&openid.realm=http%3A%2F%2Fopen.wasabii.com.tw
&openid.assoc_handle=SSTO8CckgLheh.TaMBiItDnYMUstevDJd_43FlWxvJM0KkpKdQOrVMQf
tMav11BQ3C29z0OuQ5s6Fj_vkMJn3dC7x_B1U0zyHS2DhumoxVTI3apwylXJBX.FQu_gipUz
&openid.response_nonce=2010-06-10T06%3A25%3A36ZtmH7gyfMEyEiDxhXzwTT9xniOi5JgYOr7w--
&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=o8aytsiTW%2FZGypeMVzcDPfNnph4%3D

then i change openid.mode to "check_authentication" , relay it to https://open.login.yahooapis.com/openid/op/auth
but the response always like that
CODE
ns:http://specs.openid.net/auth/2.0
is_valid:false

can tell me how to do ?

by
6 Replies
  • How did you send the request to check_authentication? Please check
    the following sample request:

    http://open.login.yahooapis.com/openid/op/...QfJ%2BULAnGY%3D

    Please make sure they are properly URL encoded.

    Thanks,
    Yu Wang
    Yahoo! Membership Team
    0
  • thank you for answer my quest , after apply UrlEncode , it's work .
    but i have another question , as http://developer.yahoo.com/oauth/guide/request-token.html said
    it should return openid.ns.oauth and openid.oauth.request_token
    I am sure i had send openid.ns.oauth and openid.oauth.consumer .
    Did i miss something ?
    0
  • Happy day! Solve by correct data. Thanks.
    0
  • Hi Died,

    Can you please provide your consumer key and your complete request?

    Thanks,
    Yu Wang
    0
  • Hi Mr. Wang :

    Here is my request and response , thank you for the help

    request
    CODE
    openid.ns=http://specs.openid.net/auth/2.0
    &openid.mode=checkid_setup
    &openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select
    &openid.identity=http://specs.openid.net/auth/2.0/identifier_select
    &openid.realm=http://open.wasabii.com.tw/
    &openid.ns.oauth=http://specs.openid.net/extensions/oauth/1.0
    &openid.return_to=http://open.wasabii.com.tw/yahooopenidoauth.aspx
    &openid.ns.ax=http://openid.net/srv/sx/1.0
    &openid.ax.mode=fetch_request
    &openid.ax.required=email
    &openid.ax.email=http://schema.openid.net/contact/email
    &xoauth_lang_pref=zh-Hant-TW
    &openid.oauth.consumer=dj0yJmk9RHJodnpVMm5vOVJQJmQ9WVdrOU4ycDZkR2xWTm5VbWNHbz
    lNVGN4T0RJeU5EQTJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD01MQ--


    response
    CODE
    openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0
    &openid.mode=id_res
    &openid.return_to=http%3A%2F%2Fmydomain.com%2Fyahooopenidoauth.aspx
    &openid.claimed_id=https%3A%2F%2Fme.yahoo.com%2Fa%2FxeojMt0SoZt3aqPHpxoSY2zTk6Y-%234bc5b
    &openid.identity=https%3A%2F%2Fme.yahoo.com%2Fa%2FxeojMt0SoZt3aqPHpxoSY2zTk6Y-
    &openid.realm=http%3A%2F%2Fmydomain.com%2F
    &openid.assoc_handle=ctoAchqECIDqlTSKuWFLXGWn8TXAbxBxp.0WJfAeFMwVBDJ6E.Urjaxb
    hmwgwQuVhOJG1ElU5jFr.dd38WP93C_En7dd1aCfjDAI7lGeEcJzgmIc_SHZW73xGLO2YlPi
    &openid.response_nonce=2010-06-28T02%3A49%3A36ZD1cM3x44SsX7DArEXiX8G0DR1WNECz5IbA--&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=u%2F42vjm6zzioUcbRGdun66FYRw8%3D
    0
  • Hi,

    Your consumer key is registered not requiring user authentication,
    so it is not applicable in the OpenID/OAuth hybrid flow.

    If you need to access user data such as Yahoo! Updates, Status and etc,
    then please make sure your consumer key belongs to the OAuth applications
    category:
    https://developer.apps.yahoo.com/projects

    You'll have to register a new consumer key.

    Thanks,
    Yu Wang
    0

Recent Posts

in OpenID General Discussion