[twitter-dev] Re: [twitter Dev] Failed to validate oauth signature and token

2009-10-07 Thread ryan alford
No, that's for both the generation of the signature and the request. I just tested it. If the parameters are not in the correct order, the request will fail with a "401 Unauthorized" error. In my test, I put the timestamp before the nonce. The request failed. If I put the parameters in order,

[twitter-dev] Re: [twitter Dev] Failed to validate oauth signature and token

2009-10-07 Thread JDG
That's simply for generating the signature base string. it does not matter when you're actually sending the parameters. On Wed, Oct 7, 2009 at 05:33, ryan alford wrote: > Here is the documentation on ordering the parameters... > http://oauth.net/core/1.0#anchor14 > > Section 9.1.1 > > Parameters

[twitter-dev] Re: [twitter Dev] Failed to validate oauth signature and token

2009-10-07 Thread ryan alford
Here is the documentation on ordering the parameters... http://oauth.net/core/1.0#anchor14 Section 9.1.1 Parameters are sorted by name, using lexicographical byte value ordering. If two or more parameters share the same name, they are sorted by their value. This is excluding the oauth_signature

[twitter-dev] Re: [twitter Dev] Failed to validate oauth signature and token

2009-10-07 Thread ryan alford
Yes, the order does matter. All parameters need to be in order except for the signature. The signature should be last and should have been generated with all of the parameters in the correct order. On Oct 7, 2009, at 12:10 AM, jmathai wrote: > > The order of parameters shouldn't matter. What

[twitter-dev] Re: [twitter Dev] Failed to validate oauth signature and token

2009-10-06 Thread uooooookeng
Sorry I don't understand means : oauth_signature must be position URL's end ex ) http://twitter.com/oauth/request_token?oauth_version=1.0&oauth_nonce=3797601334037614568&oauth_timestamp=1254888471&oauth_consumer_key=xkz0POdiAXiC2S8hE0TfXA&oauth_signature_method=HMAC_SHA1&oauth_signature=aX

[twitter-dev] Re: [twitter Dev] Failed to validate oauth signature and token

2009-10-06 Thread jmathai
The order of parameters shouldn't matter. What library are you using to generate the url? On Oct 6, 8:51 pm, ryan alford wrote: > The signature needs to be at the end of the URL, not sorted with the > other parameters. > > On Oct 6, 2009, at 11:47 PM, uookeng wrote: > > > > > I am trying t

[twitter-dev] Re: [twitter Dev] Failed to validate oauth signature and token

2009-10-06 Thread ryan alford
The signature needs to be at the end of the URL, not sorted with the other parameters. On Oct 6, 2009, at 11:47 PM, uookeng wrote: > > I am trying to run a sample app > but i am getting 401 error during request_token phase. > > Failed to validate oauth signature and token > > this is what