Date
1 - 7 of 7
oauth_problem=signature_invalid
Brian Lewis <brian@...>
I have an OAuth::AccessToken that is able to get(url). But when I do
RestClient.add_before_execution_proc do |req, params|
@access_token.sign!(req)
end
...
RestClient.get(url)
I get back 401, oauth_problem=signature_invalid.
Ruby 1.9.2p180, rest-client 1.6.1, also tried master from github.
RestClient.add_before_execution_proc do |req, params|
@access_token.sign!(req)
end
...
RestClient.get(url)
I get back 401, oauth_problem=signature_invalid.
Ruby 1.9.2p180, rest-client 1.6.1, also tried master from github.
Archiloque <code@...>
Le 4 mai 2011 à 05:36, Brian Lewis a écrit :
From their API could you try
RestClient.add_before_execution_proc do |req, params|
req.oauth! (@consumer, @access_token)
end
and tell me if it works ?
Regards
A.
I have an OAuth::AccessToken that is able to get(url). But when I doPerhaps a change in the oauth gem code, I didn't used it since a long time
RestClient.add_before_execution_proc do |req, params|
@access_token.sign!(req)
end
...
RestClient.get(url)
I get back 401, oauth_problem=signature_invalid.
Ruby 1.9.2p180, rest-client 1.6.1, also tried master from github.
From their API could you try
RestClient.add_before_execution_proc do |req, params|
req.oauth! (@consumer, @access_token)
end
and tell me if it works ?
Regards
A.
Nicholas Wieland <ngw@...>
On May 6, 2011, at 12:17 PM, Brian Lewis wrote:
On Friday, 06.05.11 at 16:20, Archiloque wrote:From their API could you tryRestClient.add_before_execution_proc do |req, params|req.oauth! (@consumer, @access_token)end
I get #<NoMethodError: undefined method `address' for #<OAuth::Consumer:0x99b072c>>
If you're using the Rails plugin you have to patch it.
ngw
Brian Lewis <brian@...>
On Friday, 06.05.11 at 12:48, Nicholas Wieland wrote:
patch, but I don't see any verify_request method in either oauth or
rest-client.
If you're using the Rails plugin you have to patch it.Hi, thanks. Could you elaborate on this? I thought I understood what to
http://groups.google.com/group/oauth-ruby/browse_thread/thread/6b2bb480255afaf1
patch, but I don't see any verify_request method in either oauth or
rest-client.
Nicholas Wieland <ngw@...>
On May 6, 2011, at 1:12 PM, Brian Lewis wrote:
If you're not using the rails plugin, I don't know.
ngw
On Friday, 06.05.11 at 12:48, Nicholas Wieland wrote:The rails plugin, not rest_client and not oauth.If you're using the Rails plugin you have to patch it.Hi, thanks. Could you elaborate on this? I thought I understood what to
http://groups.google.com/group/oauth-ruby/browse_thread/thread/6b2bb480255afaf1
patch, but I don't see any verify_request method in either oauth or
rest-client.
If you're not using the rails plugin, I don't know.
ngw