[oauth] Re: signature_invalid error when using the getAccessToken() method
This is what my application does: // // request the Access token // access.accessToken = requestToken.getPublicToken(); access.requestToken = requestToken.getPublicToken(); access.tokenSecret = requestToken.getSecret(); responseMsg = client.invoke(access, GET, this.getClientSettings().getOAuthAccessTokenUrl(), null); This works for me. Sean On Sat, Jan 24, 2009 at 8:06 AM, David Leangen david.lean...@gmail.com wrote: Hello, I am using this method in the oauth java libs to generate a request to exchange a request token for an access token: /** * Get an access token from the service provider (in exchange for an * authorized request token). */ public OAuthMessage getAccessToken( OAuthAccessor accessor, String httpMethod, Collection? extends Map.Entry parameters ) throws IOException, OAuthException, URISyntaxException When entering this method, the state is: httpMethod: null accessor.requestToken = [my nonencoded request token] accessor.accessToken = null; accessor.tokenSecret = null; accessor.consumer.callbackURL = [my nonencoded callback URL] accessor.consumer.consumerKey = [my nonencoded consumer key] accessor.consumer.consumerSecret = [my nonencoded consumer secret] accessor.consumer.properties = {serviceProvider.baseURL=https://www.google.com/, name=google} parameters = {scope=http%3A%2F%2Fwww.google.com%2Fbase%2Ffeeds%2F} What could I be doing wrong here? BTW, would there be any way of adding some more documentation to this method so users can know if it is being used correctly or not? Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups OAuth group. To post to this group, send email to oauth@googlegroups.com To unsubscribe from this group, send email to oauth+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/oauth?hl=en -~--~~~~--~~--~--~---
[oauth] Re: OAuth - signature_invalid problem
No, OAuth Core doesn't permit the consumer's secret to be used as the signature, when the signature method is HMAC-SHA1. A similar example that works is http://oauth.googlecode.com/svn/code/javascript/example/AJAX.html . It uses other scripts from http://oauth.googlecode.com/svn/code/javascript/ . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups OAuth group. To post to this group, send email to oauth@googlegroups.com To unsubscribe from this group, send email to oauth+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/oauth?hl=en -~--~~~~--~~--~--~---
[oauth] ANNOUNCE: OAuth Ruby Gem 0.3 released
This is the community barn fixing release of the OAuth Gem. The primary purpose of this release is to fix all the little issues people have discovered while actually using OAuth in the real world. A concerted effort has also been made to create much better testing of all the low level operations, such as encoding, normalization etc. There are much improved tests that follow the spec closely. There is also a new oauth command line utility, which makes it easy to test oauth requests from your shell. The official home page of the ruby library is: http://oauth.rubyforge.org/ The main git repository is: http://github.com/pelle/oauth/tree/master Many people have been involved in this release, here are the primary contributors and the changelog: == 0.3.0 * Support ActionController::Request from Edge Rails (László Bácsi) * Correctly handle multi-valued parameters (Seth) * Added #normalized_parameters to OAuth::RequestProxy::Base (Pelle) * OAuth::Signature.sign and friends now yield the RequestProxy instead of the token when the passed block's arity is 1. (Seth) * Token requests are made to the configured URL rather than generating a potentially incorrect one. (Kellan Elliott-McCrea) * Command-line app for generating signatures. (Seth) * Improved test-cases and compatibility for encoding issues. (Pelle) Thanks to all Pelle -- http://agree2.com - Reach Agreement! http://extraeagle.com - Solutions for the electronic Extra Legal world http://stakeventures.com - Bootstrapping blog --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups OAuth group. To post to this group, send email to oauth@googlegroups.com To unsubscribe from this group, send email to oauth+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/oauth?hl=en -~--~~~~--~~--~--~---