v2.2.1

@ddo ddo released this Aug 3, 2017

  • Change elements iteration in #getParameterString #55

Downloads

v2.2.0

@ddo ddo released this Jun 9, 2017 · 4 commits to master since this release

  • support realm
  • support oauth_token can be a empty string as ""

Downloads

v2.1.1

@ddo ddo released this May 7, 2017 · 8 commits to master since this release

  • preserve sorted parameters

Downloads

v2.1.0

@ddo ddo released this Jan 17, 2017 · 15 commits to master since this release

add an option to #authorize:

  • includeBodyHash: Boolean default false set to true if you want oauth_body_hash signing

Downloads

v2.0.0

@ddo ddo released this Sep 11, 2016 · 16 commits to master since this release

change:

  • rename consumer.public to consumer.key
var oauth = OAuth({
    consumer: {
        key: '<your consumer key>',
        secret: '<your consumer secret>'
    },
});
  • remove CryptoJs dependency, make PLAINTEXT as default signature method

read more here: https://github.com/ddo/oauth-1.0a#crypto

var crypto = require('crypto');
...

var oauth = OAuth({
    consumer: {
        key: '<your consumer key>',
        secret: '<your consumer secret>'
    },
    signature_method: 'HMAC-SHA1',
    hash_function: function(base_string, key) {
        return crypto.createHmac('sha1', key).update(base_string).digest('base64');
    }
});

fix:

  • fix empty GET param

Downloads

v1.0.1

@ddo ddo released this Oct 28, 2015 · 28 commits to master since this release

#28

Downloads

v1.0.0

@ddo ddo released this Sep 23, 2015 · 31 commits to master since this release

  • #18
  • follow semver

Downloads

0.2.1

@ddo ddo released this Apr 2, 2015 · 35 commits to master since this release

  • add HMAC-SHA256

Downloads

0.1.1

@ddo ddo released this May 29, 2014 · 40 commits to master since this release

#8

Downloads