0

I have my Oauth Provider which is written in php using the library Oauth php

and I am making a phonegap application to use Oauth service from my server using jsOauth library link I am following the steps provided in this tutorial

But I am getting error from server while requesting the access_token in exchange with the request token received.

OAuth Verification Failed: Verification of signature failed (signature base string was "GET&http%3A%2F%2Fapi.amishra.abc-dev.com%2Foauth%2Faccess_token.php&oauth_callback%3Dhttp%253A%252F%252Fwww.cd.com%26oauth_consumer_key%3Dab17b706d7320aa3607c8a774954eb495f7cccb3338a1f44ad4396c5a9ff69db%26oauth_nonce%3D5B702F7E46305E3B%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1343032505%26oauth_token%3D1ca90d9a8039ebe04e1c25eec852137b0500d0c4f%26oauth_version%3D1.0").

How to fix this error?

4

1 回答 1

1

您似乎没有发送oauth_verifier您应该在授权步骤中收到的参数。即在用户授权您的应用程序后调用您的回调时。这适用于https://www.rfc-editor.org/rfc/rfc5849#section-2.2中的最新 OAuth 1.0a 规范。

此外,无需oauth_callback在访问令牌请求中发送参数,这仅在请求令牌步骤中需要。

于 2012-07-23T09:04:15.543 回答