Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in OAuthRequest->from_request (PHP lib) #244

Open
GoogleCodeExporter opened this issue Nov 4, 2015 · 0 comments
Open

Problem in OAuthRequest->from_request (PHP lib) #244

GoogleCodeExporter opened this issue Nov 4, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

1, When request method is POST
2, All oauth parameters are set in header
3, customized parameters are set in post body
4, content-type is set to something else. (NOT - 
application/x-www-form-urlencoded)

since the condition is:
if ($http_method == "POST"
          &&  isset($request_headers['Content-Type'])
          && strstr($request_headers['Content-Type'],
                     'application/x-www-form-urlencoded')
          )

The requirement does not meet, then customized parameters will not be used when 
calculate the signature.  So, the result is : invalid signature.

For now, I have to remove customized parameters in base string when calculate 
signature.

I think it's a bug, and need be fixed.


Original issue reported on code.google.com by [email protected] on 12 Mar 2014 at 9:20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant