[twitter-dev] Re: oauth request token failing

2010-02-21 Thread Zhami
On Feb 17, 10:47 pm, Ryan Alford ryanalford...@gmail.com wrote: You order all parameters EXCEPT the signature, then create the signature, then append the signature to the end.  All other parameters should be in order. I am under the impression that sorting is only required to generate the

[twitter-dev] Re: oauth request token failing

2010-02-21 Thread Jaanus
You order all parameters EXCEPT the signature, then create the signature, then append the signature to the end.  All other parameters should be in order. I am under the impression that sorting is only required to generate the Signature Base String. I haven't seen anything in the OAuth spec

[twitter-dev] Re: oauth request token failing

2010-02-18 Thread Berto
Even with the URL like this: http://twitter.com/oauth/request_token?oauth_consumer_key=valueoauth_nonce=1266501098oauth_signature_method=HMAC-SHA1oauth_timestamp=1266500348oauth_version=1.0oauth_signature=eGALeAVpxt4CB%2FuHfkLq51%2FWXRk%3D It still fails for me. I've gotta be missing something

Re: [twitter-dev] Re: oauth request token failing

2010-02-18 Thread Ryan Alford
Can you post the string that you hash to create the signature? Ryan On Thu, Feb 18, 2010 at 8:42 AM, Berto mstbe...@gmail.com wrote: Even with the URL like this: http://twitter.com/oauth/request_token?oauth_consumer_key=

[twitter-dev] Re: oauth request token failing

2010-02-18 Thread Berto
GEThttp%3A%2F%2Ftwitter.com%2Foauth%2Frequest_tokenoauth_consumer_key %3D8hvUTsGttoOBN2ygbDVJw%26oauth_nonce %3D1266502068%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp %3D1266501208%26oauth_version%3D1.0 On Feb 18, 8:04 am, Ryan Alford ryanalford...@gmail.com wrote: Can you post the

Re: [twitter-dev] Re: oauth request token failing

2010-02-18 Thread Ryan Alford
That looks fine. Are you using the Consumer Secret as the key to the hash? Ryan On Thu, Feb 18, 2010 at 9:10 AM, Berto mstbe...@gmail.com wrote: GEThttp%3A%2F%2Ftwitter.com%2Foauth%2Frequest_tokenoauth_consumer_key %3D8hvUTsGttoOBN2ygbDVJw%26oauth_nonce

[twitter-dev] Re: oauth request token failing

2010-02-18 Thread Berto
Fixed by putting an after my consumer secret. So essentially, it was just that my parameters were out-of-order. Thanks, Ryan! On Feb 18, 9:01 am, Ryan Alford ryanalford...@gmail.com wrote: That looks fine. Are you using the Consumer Secret as the key to the hash? Ryan On Thu, Feb 18,

[twitter-dev] Re: oauth request token failing

2010-02-18 Thread Berto
Correct. I'm using the exact values provided from my application registration. And I've verified the algorithm works with the example from the oauth spec. On Feb 18, 9:01 am, Ryan Alford ryanalford...@gmail.com wrote: That looks fine. Are you using the Consumer Secret as the key to the hash?

[twitter-dev] Re: oauth request token failing

2010-02-17 Thread Berto
To answer the first email, I was doing that so I could put it in the request header's authorization field to get this effect: (Taken from oauth.net) Authorization: OAuth realm=http://sp.example.com/;, oauth_consumer_key=0685bd9184jfhq22,

Re: [twitter-dev] Re: oauth request token failing

2010-02-17 Thread Ryan Alford
Your querystring parameters are in the wrong order. You have the oauth_nonce AFTER oauth_timestamp. It needs to be before it. The parameters must be in order. Ryan Sent from my DROID On Feb 17, 2010 6:18 PM, Berto mstbe...@gmail.com wrote: To answer the first email, I was doing that so I

[twitter-dev] Re: oauth request token failing

2010-02-17 Thread Berto
Nevermind, just re-read the normalizing parameters part of the spec. I'll try it out tomorrow. Thanks. On Feb 17, 5:27 pm, Ryan Alford ryanalford...@gmail.com wrote: Your querystring parameters are in the wrong order.  You have the oauth_nonce AFTER oauth_timestamp.  It needs to be before it.  

Re: [twitter-dev] Re: oauth request token failing

2010-02-17 Thread Berto
I thought that was only for the signature which is in the right order? Ryan Alford wrote: Your querystring parameters are in the wrong order. You have the oauth_nonce AFTER oauth_timestamp. It needs to be before it. The parameters must be in order. Ryan Sent from my DROID On Feb 17,

Re: [twitter-dev] Re: oauth request token failing

2010-02-17 Thread Ryan Alford
You order all parameters EXCEPT the signature, then create the signature, then append the signature to the end. All other parameters should be in order. Ryan On Wed, Feb 17, 2010 at 6:42 PM, Berto mstbe...@gmail.com wrote: I thought that was only for the signature which is in the right