08-06-2010 10:34 AM
Thanks for the tips. I try to make the changes to my encoder tonight to see if it helps.
08-06-2010 11:04 AM
made the changes...
Still no luck.... ![]()
Failed to validate oauth signature and token
08-06-2010 04:22 PM
Whoo Hoo Finally got a 200!!! My last mistake was that I was not url encoding the signature before placing it into the authorization header.
Thanks everyone for the help.
08-08-2010 02:51 PM
Still no luck for me. For those that got it to work, did you just change the URLUTF8Encoder class result by adding toUpperCase at the end to the whole string?
Could someone post theirs?
08-11-2010 08:58 PM
Just an update.. I did get it working the other day. Turns out that it was a typo in my header building method. Using the netflix tool really helped though for seeing what signature to expect throughout the debugging process.
08-16-2010 05:37 AM
08-16-2010 09:14 AM
thank you very much BaluKr54
its working perfectly after chnaging the hex vales to capitals in encoder...
08-19-2010 03:39 PM - edited 08-19-2010 03:41 PM
Hi kmbauer,
I too get the signature
MUYmiobRdoK6s0ZVqo4xQNNO17w%3D (after url encoding)
when signing the exact string from the example.. did this turn out to be 'ok' or was there a mistake that prevented you from getting the exact same string of yUDBrcMMm6ghqBEKCFKVoJPIacU%3D ?
08-19-2010 03:49 PM
I do not think you get the same string as they do. I get the same string everytime I encode on my machine, but I think it is different form what you would get on any other machine.
Best I can tell anyway.
08-19-2010 03:58 PM
Ok, dumb mistake on my end.. the header name is Authorization not OAuth, as in
connection.setRequestProperty("Authorization", oAuthHeader);
and to answer my own question, getting the different signature for the same string is apparently fine.