Issue 118 in oauth-php: Param $oauth_as_header is not configurable for call getQueryString on OAuthRequester.php

13 views
Skip to first unread message

oaut...@googlecode.com

unread,
Oct 25, 2011, 10:43:20 PM10/25/11
to oauth-ph...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 118 by elielso...@gmail.com: Param $oauth_as_header is not
configurable for call getQueryString on OAuthRequester.php
http://code.google.com/p/oauth-php/issues/detail?id=118

What steps will reproduce the problem?
1.Make an request_token using 2Leg

What is the expected output? What do you see instead?
The result of request_token. But i receive "failed with code 401: OAuth
Verification Failed: Can't verify request, missing oauth_consumer_key or
oauth_token."

What version of the product are you using? On what operating system?
oauth-php-175 on Linux

Please provide any additional information below.
After a lot of time waste on try a simple test with 2Leg request_token i
realized that all of my request to my OAuth server was going without the
data on GET OR POST queryString. All of the data
(oauth_consumer_key,oauth_consumer_signed,....) was going on Request
header. Making then to my OAuth Server don't recognize the request.

I modified the file OAuthRequester.php on 331 line. When is "$query =
$this->getQueryString();" i changed to "$query =
$this->getQueryString(true);"
And this solved my problem, because now the oauth data is being sending on
Request body and no longer only on Request header.

I think that this should be configurable, but the way that are ... all of
the request will always go without oauth data on request body.

oaut...@googlecode.com

unread,
Oct 25, 2011, 10:47:21 PM10/25/11
to oauth-ph...@googlegroups.com

Comment #1 on issue 118 by elielso...@gmail.com: Param $oauth_as_header is
not configurable for call getQueryString on OAuthRequester.php
http://code.google.com/p/oauth-php/issues/detail?id=118

Sorry ... i changed the "$query = $this->getQueryString();" to "$query =
$this->getQueryString(false);"

Because on the function getQueryString on OAuthRequestSigner.php have a
default param set to true.

oaut...@googlecode.com

unread,
Oct 7, 2012, 9:28:54 AM10/7/12
to oauth-ph...@googlegroups.com

Comment #2 on issue 118 by myah...@yahoo.ca: Param $oauth_as_header is not
configurable for call getQueryString on OAuthRequester.php
http://code.google.com/p/oauth-php/issues/detail?id=118

Had same problem... fixed same way.

oaut...@googlecode.com

unread,
Apr 16, 2013, 10:55:35 AM4/16/13
to oauth-ph...@googlegroups.com

Comment #3 on issue 118 by matt.ca...@visualrevenue.com: Param
$oauth_as_header is not configurable for call getQueryString on
OAuthRequester.php
http://code.google.com/p/oauth-php/issues/detail?id=118

Same issue here with the same fix. Why is this setting not available in the
API of the library? My guess is nobody uses the 2-legged OAuth.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages