oauth-1.0a
Advanced tools
Comparing version 2.1.1 to 2.2.0
@@ -26,2 +26,3 @@ if (typeof(module) !== 'undefined' && typeof(exports) !== 'undefined') { | ||
this.parameter_seperator = opts.parameter_seperator || ', '; | ||
this.realm = opts.realm; | ||
@@ -74,3 +75,3 @@ if(typeof opts.last_ampersand === 'undefined') { | ||
if(token.key) { | ||
if(token.key !== undefined) { | ||
oauth_data.oauth_token = token.key; | ||
@@ -282,4 +283,8 @@ } | ||
if (this.realm) { | ||
header_value += 'realm="' + this.realm + '"' + this.parameter_seperator; | ||
} | ||
for(var i = 0; i < sorted.length; i++) { | ||
if (sorted[i].key.indexOf('oauth_') !== 0 && sorted[i].key !== 'realm') | ||
if (sorted[i].key.indexOf('oauth_') !== 0) | ||
continue; | ||
@@ -286,0 +291,0 @@ |
{ | ||
"name": "oauth-1.0a", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "OAuth 1.0a Request Authorization for Node and Browser.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -322,2 +322,3 @@ oauth-1.0a [![semaphore][semaphore-img]][semaphore-url] | ||
* ``parameter_seperator``: ``String`` for header only, default ``', '``. Note that there is a space after ``,`` | ||
* ``realm``: ``String`` | ||
* ``last_ampersand``: ``Bool`` default ``true``. For some services if there is no Token Secret then no need ``&`` at the end. Check [oauth doc](http://oauth.net/core/1.0a/#anchor22) for more information | ||
@@ -324,0 +325,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59863
22
1275
353