bettiolo / oauth-signature-js

JavaScript OAuth 1.0a signature generator (RFC 5849) for node and the browser
https://www.npmjs.com/package/oauth-signature
BSD 3-Clause "New" or "Revised" License
232 stars 71 forks source link

Sample GET request 404 #8

Closed ginna-baker closed 9 years ago

ginna-baker commented 9 years ago

I'm interested in viewing the sample GET request, but getting a 404 on the page.

bettiolo commented 9 years ago

@ginna-baker that is just an example as per RFC, the domain does not really support OAuth.

bettiolo commented 9 years ago

If you want to make a working experiment you can use the live version of the OAuth signature page at this url: http://bettiolo.github.io/oauth-reference-page/ And you can hit the echo OAuth endpoints at this url: http://echo.lab.madgex.com/

url: http://echo.lab.madgex.com/echo.ashx consumer key: key consumer secret: secret token: accesskey token secret: accesssecret nonce: IMPORTANT! generate a new one at EACH request otherwise you will get a 400 Bad Request timestamp: IMPORTANT! refresh the timestamp before each call fields: add a field with name 'foo' and value 'bar'

A url similar to this one will be generated: http://echo.lab.madgex.com/echo.ashx?foo=bar&oauth_consumer_key=key&oauth_nonce=643377115&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1410807318&oauth_token=accesskey&oauth_version=1.0&oauth_signature=zCmKoF9rVlNxAkD8wUCizFUajs4%3D

Click on the generated link on the right hand side and you will see the echo server returning 'foo=bar'

bettiolo commented 9 years ago

I updated the readme.md with the instructions