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

2011-04-15 Thread galeyte
Ok, i've checked again and there is some stuff i did not see at first. So now i'm correctly generating my basestring : basestring: POST&http%3A%2F%2Fapi.twitter.com%2Foauth %2Frequest_token&oauth_consumer_key%3D[CONSUMER_KEY]%26oauth_nonce %3Dmr7yTy%26oauth_signature_method%3DHMAC-SHA1%26oauth_time

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

2011-02-09 Thread Dale
Hi Matt, I have fixed a bunch of the formatting issues and it now validates in the OAuth tester app that Tom posted, but I am still getting an error when posting. Here is my updated request string. POST&https%3A%2F%2Fapi.twitter.com%2Foauth %2Frequest_token&oauth_consumer_key%3DX%26oau

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

2011-02-08 Thread victoriannsmith
Do I have to leave the group? Sent via BlackBerry by AT&T -Original Message- From: Matt Harris Sender: twitter-development-talk@googlegroups.com Date: Tue, 8 Feb 2011 17:34:18 To: Reply-To: twitter-development-talk@googlegroups.com Subject: Re: [twitter-dev] Re: Failed to vali

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

2011-02-08 Thread victoriannsmith
om Subject: Re: [twitter-dev] Re: Failed to validate oauth signature and token Hi Dale, There are a number of things that can cause OAuth to fail. We've clarified our error messages to try and make it easier to know which bit is the cause of the problem. For timestamps we return the error messag

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

2011-02-08 Thread Matt Harris
Hi Dale, There are a number of things that can cause OAuth to fail. We've clarified our error messages to try and make it easier to know which bit is the cause of the problem. For timestamps we return the error message "Timestamp out of bounds". In your case the error message is saying your signa

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

2011-02-08 Thread Dale
I just set the system clock on my Win 2003 server to net time / setsntp:"0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org" as I saw a lot of folks saying this fixed their issues, but it had no effect. On Feb 8, 3:15 pm, Dale wrote: > I am attempting to set up a ColdFusion script to do auto updates to

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

2010-11-20 Thread computerzworld
I am facing the problem again even after server time sync. Getting the same error again. Now what should be the issue? I am getting stuck again :( On Nov 20, 10:45 am, computerzworld wrote: > Problem solved! I have synchronized my server time to NTM using WHM  & > it worked! Thanks all for your h

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

2010-11-19 Thread computerzworld
Problem solved! I have synchronized my server time to NTM using WHM & it worked! Thanks all for your help. On Nov 20, 10:26 am, computerzworld wrote: > @ Matt Harris >                       I checked the header from twitter & my server's > header & I found difference of 1 hour & I have set the

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

2010-11-19 Thread computerzworld
@ Matt Harris I checked the header from twitter & my server's header & I found difference of 1 hour & I have set the time using date_default_timezone_set to GMT using PHP. But still its giving the same error. What should be the problem behind it? Thanks. On Nov 19, 11:55 pm,

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

2010-11-19 Thread Matt Harris
In addition, the server time is returned in the HEAD of every response from the Twitter API. If the first request fails you can inspect the time returned in the HEAD and calculate the difference between it and your local time. You can then add/subtract that difference to the timestamp you use for O

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

2010-11-19 Thread M. Edward (Ed) Borasky
The server administrators can and should sync server clocks automatically to the world time clocks using Network Time Protocol (NTP). If your "IT department" isn't doing this, find out why not. Most likely they don't know it's possible. It's pretty easy on Linux and Windows, but you do need

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

2010-11-19 Thread computerzworld
Thanks for your reply. Is there anyway to sync server clock programatically? Or any other way by which we can make the stuff working? Because I don't have access to server hardware. On Nov 12, 12:28 am, Abraham Williams <4bra...@gmail.com> wrote: > Your servers clock needs to be properly synced us

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

2010-10-28 Thread kprobe
OK, switched over to use Tijs Verkoyen twitter class and it works. On Oct 28, 2:00 pm, Tom van der Woerdt wrote: > The URLs in that object are very old. You should always use > api.twitter.com, and if possible, https://. > > I cannot tell you why you are getting this error without seeing more > i

[twitter-dev] Re: Failed to validate oauth signature and token - C# .Net

2010-10-26 Thread MartinHN
Thanks, that helped! I just encoded the callback URL, and now it works! On Oct 26, 9:26 pm, Tom van der Woerdt wrote: > You should URL-encode all values first, before putting them in the Body > part of the Base String (which is then URL-encoded again). > > In your case, oauth_callback isn't prope

Re: [twitter-dev] Re: Failed to validate oauth signature and token - C# .Net

2010-10-26 Thread Tom van der Woerdt
You should URL-encode all values first, before putting them in the Body part of the Base String (which is then URL-encoded again). In your case, oauth_callback isn't properly encoded. Tom On 10/26/10 9:20 PM, MartinHN wrote: > Signature base: > > POST&https%3A%2F%2Fapi.twitter.com%2Foauth > %2

[twitter-dev] Re: Failed to validate oauth signature and token - C# .Net

2010-10-26 Thread MartinHN
Signature base: POST&https%3A%2F%2Fapi.twitter.com%2Foauth %2Frequest_token&oauth_callback%3Dhttp%3A%2F%2Fyakinix.web%2Foauth %2Fcallback%26oauth_consumer_key%3D6lu1o0Jd01UoBPIvdohog%26oauth_nonce %3Df35812a9-39e7-41f4-b2aa-e08bae349f60%26oauth_signature_method %3DHMAC-SHA1%26oauth_timestamp%3D128

[twitter-dev] Re: "Failed to validate oauth signature and token" with xAuth

2010-09-20 Thread mlowicki
It works for me now! This is the final script: var username = encodeURIComponent(cfg.username), password = encodeURIComponent(cfg.password), url = "https://api.twitter.com/oauth/access_token";, timestamp = Math.round((new Date()).getTime() / 1000), nonce = Math.random(); var acces

[twitter-dev] Re: "Failed to validate oauth signature and token" with xAuth

2010-09-20 Thread mlowicki
@Matt, can you provide some method for debugging my issue or some solution because with such error message as "Failed to validate oauth signature and token" my debugging now is more like guessing On Sep 20, 11:50 am, Tom van der Woerdt wrote: > The only relevant part of my code : > $sig = ba

Re: [twitter-dev] Re: "Failed to validate oauth signature and token" with xAuth

2010-09-20 Thread Tom van der Woerdt
The only relevant part of my code : $sig = base64_encode(hash_hmac('sha1', $baseString, $key, true)); Key and Base String are visible on the page itself ;-) Tom On Mon, 20 Sep 2010 01:59:14 -0700 (PDT), mlowicki wrote: > When i'm using http://quonos.nl/oauthTester/ for oAuth validation with >

[twitter-dev] Re: "Failed to validate oauth signature and token" with xAuth

2010-09-20 Thread mlowicki
this is how my code looks like now: var username = encodeURIComponent("user"); var password = encodeURIComponent("password"); var url = "https://api.twitter.com/oauth/access_token";; var key = "key"; var secret = "MCD8BKwGdgPHvAuvgvz4EQpqDAtx89grbuNMRd7Eh98"

[twitter-dev] Re: "Failed to validate oauth signature and token" with xAuth

2010-09-20 Thread mlowicki
When i'm using http://quonos.nl/oauthTester/ for oAuth validation with my code i get: Base String syntax: OK Method type: OK URL: OK Parameters syntax: O But when i replace my secret with "MCD8BKwGdgPHvAuvgvz4EQpqDAtx89grbuNMRd7Eh98" i get different signature - ZtkBQc2RwY+Jv1Fv8fXoasR4DLo @To

[twitter-dev] Re: "Failed to validate oauth signature and token" with xAuth

2010-09-18 Thread Nikolay Klimchuk
You need to URLEndcode password and user name And then URLEncode entire base string one more time On Sep 18, 5:55 pm, Tom van der Woerdt wrote: > Nikolay, > > If you look at the code, you'll see that it's already passed through the URL > encode function, but it doesn't do a thing. I'd say that t

Re: [twitter-dev] Re: "Failed to validate oauth signature and token" with xAuth

2010-09-18 Thread Tom van der Woerdt
Nikolay, If you look at the code, you'll see that it's already passed through the URL encode function, but it doesn't do a thing. I'd say that the issue is at that function. Tom On Sep 18, 2010, at 11:41 PM, Nikolay Klimchuk wrote: > Second part of the base string: > oauth_consumer_key=sGNx

[twitter-dev] Re: "Failed to validate oauth signature and token" with xAuth

2010-09-18 Thread Nikolay Klimchuk
Second part of the base string: oauth_consumer_key=sGNxxnqgZRHUt6NunK3uw&oauth_nonce=WLxsob j4rhS2xmCbaAeT4aAkRfx4vSHX4OnYpTE77hA&oauth_signature_method=HMAC- SHA1&oauth_timestamp=1276101652&oauth_version=1.0&x_auth_mode=client_auth&x _auth_password= %25&123!aZ+()456242134&x_auth_username=tpFriendl

Re: [twitter-dev] Re: "Failed to validate oauth signature and token" with xAuth

2010-09-18 Thread Tom van der Woerdt
Hi, You can verify your Base String using my OAuth Validator, To answer your question: it *looks* like your encodeURIComponent function doesn't do its work properly. Tom On 9/18/10 1:19 PM, mlowicki wrote: > I tried with data from http://dev.twitter.com/pages/xa

[twitter-dev] Re: "Failed to validate oauth signature and token" with xAuth

2010-09-18 Thread mlowicki
I tried with data from http://dev.twitter.com/pages/xauth: (function() { var secret = "5kEQypKe7lFHnufLtsocB1vAzO07xLFgp2Pc4sp2vk&"; var access_token = "oauth_consumer_key=sGNxxnqgZRHUt6NunK3uw" + "&oauth_nonce=WLxsobj4rhS2xmCbaAeT4aAkRfx4vSHX4OnYpTE77hA" + "&oauth_signature_method=HMAC-SHA1" + "&

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

2010-08-12 Thread Dommer
I messed around with hand-endcoding oauth urls as well and finally gave up. There are a plethora of APIs out there that take care of all this for you. Personally I am using @anywhere on the client and twitter4j on the server. Really seamless, and now I can focus my app (www.standard3d.com). On

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

2010-07-23 Thread David Tavárez
How looks the final code? On Jul 6, 1:19 pm, ntortarolo wrote: > Hi Taylor, i have fixed this, the problem wasnt on hmac-sha1 and > base64 encoding, on my ajax call with jquery something wrong happened, > i have changed it to HttpRequest of firefox component and it works. My > app is an addon for

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

2010-07-06 Thread Matt Harris
Thanks for sharing the solution. Glad it's all working for you now. Matt On Tue, Jul 6, 2010 at 4:24 PM, ntortarolo wrote: > I have just fixed my last error. My oauth_token wasnt in correct orden > on my base string. > Thanks! > > On Jul 6, 2:19 pm, ntortarolo wrote: > > Hi Taylor, i have fixed

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

2010-07-06 Thread ntortarolo
I have just fixed my last error. My oauth_token wasnt in correct orden on my base string. Thanks! On Jul 6, 2:19 pm, ntortarolo wrote: > Hi Taylor, i have fixed this, the problem wasnt on hmac-sha1 and > base64 encoding, on my ajax call with jquery something wrong happened, > i have changed it to

[twitter-dev] Re: "Failed to validate oauth signature and token" using ColdFusion8

2010-07-06 Thread Carlos Villarreal Mora
Thanks Raffi, I'll check that library out. I didn't know there were libraries I could use. On Jul 6, 7:23 am, Raffi Krikorian wrote: > hi carlos. > > i'm sorry that i'm not sure i can help to debug this code right now.  if you > are going to insist on creating your own functions to do the oauth

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

2010-07-06 Thread ntortarolo
Hi Taylor, i have fixed this, the problem wasnt on hmac-sha1 and base64 encoding, on my ajax call with jquery something wrong happened, i have changed it to HttpRequest of firefox component and it works. My app is an addon for firefox and its client side (javascript and xul). I know its not secure

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

2010-01-17 Thread ryan alford
Yeah, the Nonce needs to be a unique value. If your language can create GUIDs, that might be the best option. Ryan On Sat, Jan 16, 2010 at 11:11 PM, eco_bach wrote: > solved, apparently my oauth_nonce value was incorrect, I assumed it > was simply a random string and I didn't use the mx.utils.

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

2010-01-16 Thread eco_bach
solved, apparently my oauth_nonce value was incorrect, I assumed it was simply a random string and I didn't use the mx.utils.UIDUtil class to generate. I'll try also switching the order so the signature is at the end.

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

2009-12-29 Thread Raffi Krikorian
> > > not right now. > > hmm, if it is so then how does the "python-twitter" (http:// > code.google.com/p/python-twitter/) work? it allows posting messages > and much more without the browser. maybe i missed smth... > thank you for clarifications. > python twitter, i assume, is using basic authent

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

2009-12-29 Thread varnie
On Dec 30, 2:07 am, Raffi Krikorian wrote: > not right now. hmm, if it is so then how does the "python-twitter" (http:// code.google.com/p/python-twitter/) work? it allows posting messages and much more without the browser. maybe i missed smth... thank you for clarifications.

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

2009-12-29 Thread Raffi Krikorian
not right now. i have to emphasize, the reason the browser is "a good thing" is that the user can see that he is not giving his twitter password to your application. On Tue, Dec 29, 2009 at 10:46 AM, varnie wrote: > Good day. I've solved my issue. One more question - are there any ways > to get

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

2009-12-29 Thread varnie
Good day. I've solved my issue. One more question - are there any ways to get authorization without having to use the browser? if you're awared of any solutions please let me know, thanks.

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

2009-12-28 Thread Abraham Williams
In order for your application to act on behalf of a user you must follow the OAuth flow and get access tokens for the user. You can read about getting started with OAuth from: http://oauth.net/documentation/getting-started/ You can also read my slightly dated walkthrough although the flow will st

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

2009-12-28 Thread varnie
Tried to register test application and tried to use that oauth.py script with newer consumer key and consumer secret. but unluckily there's no success. here is the newest HTTP logs: "send: 'POST http://twitter.com/oauth/request_token?oauth_nonce=81708853&oauth_timestamp=1262009548&oauth_consumer_

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

2009-12-28 Thread varnie
Hello. Thanks for info. As far as i read, the "consumer_key" is just a user's nickname in Twitter. is it true? Speaking about registering an application with Twitter. Does it needed when i just want to use some well-known open-source applications/scripts to communicate with Twitter using my twitt

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

2009-07-29 Thread Rock
Hi Srikanth, I am able to get the PIN from twitter. Now as you mentioned above i need to add oauth_verifier in accessToken.html. I have added that field and entered the PIN i got from twitter. However it is not working. Can you please explain a bit on changes that need to be done in accessToken

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

2009-07-28 Thread Rock
Thanks srikanth. It worked :-)

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

2009-07-28 Thread srikanth reddy
Hi You might have got the samples along with jscript libraries (eg requestToken.html , authorize.html etc ). They are working fine . Just replace the consumer keys and secrets with yours in consumer.js One more change is add the 'oauth_verifier' field in accessToken.html (make sure you trim the tra

[twitter-dev] Re: "Failed to validate oauth signature and token" using python/django libs

2009-07-13 Thread Blaine Garrett
Update: It works now. Thanks to everyone who tried to help me diagnose the issue. Today, Hedley posted about the system being off can cause the request token to fail. This was my exact problem it turns out. http://groups.google.com/group/twitter-development-talk/browse_thread/thread/aadee92bc5c34

[twitter-dev] Re: "Failed to validate oauth signature and token" using python/django libs

2009-07-09 Thread JDG
No. According to the oauth spec, your signature key is always "consumer_secret&token_secret", even if token_secret is empty, so when you first call request_token, your key will be "consumer_secret&" On Thu, Jul 9, 2009 at 21:24, Blaine Garrett wrote: > > Hi, > > Thanks for the quick reply Matt.

[twitter-dev] Re: "Failed to validate oauth signature and token" using python/django libs

2009-07-09 Thread Blaine Garrett
Hi, Thanks for the quick reply Matt. Below is a recap of the setup with a bit more clarity as well as the keys, url, and pre-encoded data. Hopefully this sheds some light on the issue. I also tried the PHP lib someone recommended with the same results - i.e 401 error. So again, I am thinking it

[twitter-dev] Re: "Failed to validate oauth signature and token" using python/django libs

2009-07-06 Thread Matt Sanford
Hi Blaine, Failing the validate the signature when getting a request token is pretty rare. As you said the fact this all works from other libraries seems to point to a library issue. The most helpful things to see in these cases are: • The actual HTTP request and response that fails