node-oauth-1.0a
OAuth 1.0a Request Authorization for Node and BrowserSend OAuth request with your favorite HTTP client (request, jQuery.ajax...) or fetch)
Breaking change
- v3.0.0
crypto
- v2.0.0
authorize
. As it no longer mutate input,the input string no longer get escaped correctly per OAuth spec.
To remedy this:
- If you build POST body yourself, use the `buildQueryString` method
instead of `querystring.encode`.
- Otherwise, make sure that your parameters are encoded with
`percentEncode` instead of `encodeURIComponent`. It is available at
`require('node-oauth-1.0a/src/utils').percentEncode`.
Difference to oauth-1.0a
- The code is broken down to multiple files and rewritten to a subset of ES6.
expected that the code will change to full ES6.
- Use libraries instead of shipping with some common algorithms.
- Large parts of the API are made private
- The public API should be compatible with some changes
new
.
- authorize
and its inner methods no longer mutate input.
- getHeader
with the same signature as authorize
is added. toHeader
isdeprecated