Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oauth-1.0a

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oauth-1.0a - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

test/options/realm.js

9

oauth-1.0a.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc