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

The signature is incorrectly calculated for Curb Requests #10

Closed
libc opened this issue Oct 19, 2011 · 0 comments
Closed

The signature is incorrectly calculated for Curb Requests #10

libc opened this issue Oct 19, 2011 · 0 comments

Comments

@libc
Copy link

libc commented Oct 19, 2011

https://github.com/pelle/oauth/blob/master/lib/oauth/request_proxy/curb_request.rb#L18 contains

    def method
      nil
    end

And the method method (:)) is used in the signature calculating method. I monkey patched it to

OAuth::RequestProxy::Curl::Easy.class_eval do
  def method
    options[:method].to_s.upcase
  end
end

I'm not sure what's the proper solution is, but right now without the monkey patch the remote server throws the signature invalid error. I can provide the patch, but it's kinda trivial to make anyway.

Cheers.

@libc libc closed this as completed May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant