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
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;
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 mlowi...@gmail.com
wrote:
When i'm using http://quonos.nl/oauthTester/ for oAuth
@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 i...@tvdw.eu wrote:
The only relevant part of my code :
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
Second part of the base string:
oauth_consumer_key=sGNxxnqgZRHUt6NunK3uwoauth_nonce=WLxsob
j4rhS2xmCbaAeT4aAkRfx4vSHX4OnYpTE77hAoauth_signature_method=HMAC-
SHA1oauth_timestamp=1276101652oauth_version=1.0x_auth_mode=client_authx
_auth_password=
%25123!aZ+()456242134x_auth_username=tpFriendlyGiant
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 klimc...@gmail.com wrote:
Second part of the base string:
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 i...@tvdw.eu 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
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
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 ntortar...@gmail.com 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
Thanks for sharing the solution. Glad it's all working for you now.
Matt
On Tue, Jul 6, 2010 at 4:24 PM, ntortarolo ntortar...@gmail.com 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
11 matches
Mail list logo