generating hmac-sha1 signatures w/ coldfusion

2011-05-20 Thread Jeff Gladnick
I've scoured google for hours now and cannot seem to find what I am looking for. I am trying to build a library to connect to Yahoo's API and import contacts via their REST API using oAuth. I have the oAuth authentication done and working, but the final step, making the API request won't seem

Re: generating hmac-sha1 signatures w/ coldfusion

2011-05-20 Thread Dorioo
I haven't worked with the Yahoo API but I have worked with other APIs that required a hmac-sha1 signature and this function was invaluable. You'll likely need it as some point. http://www.coldfusiondeveloper.com.au/go/note/2008/01/18/hmac-sha1-using-java/ - Gabriel On Fri, May 20, 2011 at 1:33

Re: generating hmac-sha1 signatures w/ coldfusion

2011-05-20 Thread Jeff Gladnick
@Gabriel: I am using that. For the signmessage I am passing in something that looks similar to this: POSThttps%3A%2F%2Fapi.login.yahoo.com%2Foauth%2Fv2%2Fget_request_token oauth_consumer_key%3Ddj0yJmk9YmxIanRLOGQybWFCJmQ9WVdrOUxWbFBVMWRUTmpRbWNHbzlNQ1o1UFRFLSZzPWNvbnN1bWVyc2VjcmV0Jng9YTc-

Re: generating hmac-sha1 signatures w/ coldfusion

2011-05-20 Thread Jeff Gladnick
code I am currently using: http://pastebin.com/pJK3m6SW ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: generating hmac-sha1 signatures w/ coldfusion

2011-05-20 Thread Jeff Gladnick
Might be getting close with this code: http://pastebin.com/uwbkGCVP Now its producing reasonable characters at least, using slightly different hmac-sha1 function. ~| Order the Adobe Coldfusion Anthology now!

Re: generating hmac-sha1 signatures w/ coldfusion

2011-05-20 Thread Dorioo
True. In my code, using the original function on that page, I take the calculation from the function and do this to it to create a readable string: toBase64(digest, hex) where digest is the code created by the function. - Gabriel On Fri, May 20, 2011 at 2:22 PM, Jeff Gladnick

Re: generating hmac-sha1 signatures w/ coldfusion

2011-05-20 Thread Jeff Gladnick
I'm so close... Latest code http://pastebin.com/iJxYGJeL error returned: Please provide valid credentials. OAuth oauth_problem=parameter_rejected: oauth_signature I must be constructing my signature wrong but I can seem to figure it out :(