Skip to content

Releases: ddo/oauth-1.0a

v2.2.6

05 Jun 10:31
@ddo ddo
Compare
Choose a tag to compare
  • update dev dependencies
  • Added types for BodyHashFunction and HashFunction
  • remove linkedin in test

v2.2.5

24 Oct 07:49
@ddo ddo
Compare
Choose a tag to compare

Make realm optional in TS

v2.2.4

25 Jan 10:40
@ddo ddo
Compare
Choose a tag to compare

Add Typescripts type declaration

v2.2.3

18 Dec 11:43
@ddo ddo
Compare
Choose a tag to compare

v2.2.2

12 Sep 14:24
@ddo ddo
Compare
Choose a tag to compare

v2.2.1

03 Aug 08:47
@ddo ddo
Compare
Choose a tag to compare
  • Change elements iteration in #getParameterString #55

v2.2.0

09 Jun 10:30
@ddo ddo
Compare
Choose a tag to compare
  • support realm
  • support oauth_token can be a empty string as ""

v2.1.1

07 May 13:05
@ddo ddo
Compare
Choose a tag to compare
  • preserve sorted parameters

v2.1.0

17 Jan 07:31
@ddo ddo
Compare
Choose a tag to compare

add an option to #authorize:

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

v2.0.0

11 Sep 13:56
@ddo ddo
Compare
Choose a tag to compare

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