oauth-1.0a
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "oauth-1.0a", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "OAuth 1.0a Request Authorization for Node and Browser.", | ||
"scripts": { | ||
"test": "mocha", | ||
"start": "clear && node index" | ||
"test": "make test" | ||
}, | ||
"main": "oauth-1.0a.js", | ||
"repository": "https://github.com/ddo/oauth-1.0a.git", | ||
@@ -10,0 +10,0 @@ "keywords": [ |
oauth-1.0a | ||
========== | ||
[![Dependencies](https://api.travis-ci.org/ddo/oauth-1.0a.png)](https://travis-ci.org/ddo/oauth-1.0a) | ||
[![Dependency Status](https://david-dm.org/ddo/oauth-1.0a.png?theme=shields.io)](https://david-dm.org/ddo/oauth-1.0a) | ||
[![NPM version](https://badge.fury.io/js/oauth-1.0a.png)](http://badge.fury.io/js/oauth-1.0a) | ||
![codeship](https://www.codeship.io/projects/4388a200-ac85-0131-b0cb-7e8dce60f53f/status) | ||
OAuth 1.0a Request Authorization for **Node** and **Browser** | ||
@@ -14,3 +15,3 @@ | ||
I tested on some popular OAuth 1.0a services: | ||
Tested on some popular OAuth 1.0a services: | ||
@@ -51,3 +52,3 @@ * Twitter | ||
###Browser | ||
Download oauth-1.0a.js [here](https://github.com/ddo/oauth-1.0a/blob/master/lib/oauth-1.0a.js) | ||
Download oauth-1.0a.js [here](https://github.com/ddo/oauth-1.0a/blob/0.0.7/oauth-1.0a.js) | ||
@@ -177,3 +178,3 @@ <script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/hmac-sha1.js"></script> | ||
data: request_data.data, | ||
header: oauth.toHeader(oauth.authorize(request_data, token)) | ||
headers: oauth.toHeader(oauth.authorize(request_data, token)) | ||
}).done(function(data) { | ||
@@ -187,8 +188,8 @@ //process your data here | ||
* **If you want an easier way to handle your OAuth request. Please visit [SimpleOAuth](https://github.com/ddo/SimpleOAuth), it's a wrapper of this project, some features:** | ||
* **If you want an easier way to handle your OAuth request. Please visit [Simple OAuth](https://github.com/ddo/simple-oauth), it's a wrapper of this project, some features:** | ||
* Request Token method | ||
* Get Authorize link method | ||
* Access Token method | ||
* OAuth 2.0 support | ||
* Simpler syntax: | ||
* Access Token method | ||
* OAuth 2.0 support | ||
* Simpler syntax: | ||
@@ -243,3 +244,3 @@ Node.js: | ||
##[Changelog](https://github.com/ddo/oauth-1.0a/wiki/Changelog) | ||
##[Changelog](https://github.com/ddo/oauth-1.0a/releases) | ||
@@ -249,2 +250,6 @@ | ||
* Browser: [crypto-js](https://code.google.com/p/crypto-js/) | ||
* Node: [crypto-js](https://github.com/evanvosberg/crypto-js) | ||
* Node: [crypto-js](https://github.com/evanvosberg/crypto-js) | ||
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/ddo/oauth-1.0a/trend.png)](https://bitdeli.com/free "Bitdeli Badge") | ||
@@ -6,3 +6,3 @@ var expect; | ||
expect = require('chai').expect; | ||
var OAuth = require('../'); | ||
var OAuth = require('../oauth-1.0a'); | ||
} else { //Browser | ||
@@ -21,2 +21,3 @@ expect = chai.expect; | ||
//overide for testing only !!! | ||
oauth.getTimeStamp = function() { | ||
@@ -26,2 +27,3 @@ return 1318622958; | ||
//overide for testing only !!! | ||
oauth.getNonce = function(length) { | ||
@@ -28,0 +30,0 @@ return 'kYjzVBB8Y0ZFabxSWbWovY3uYSQ2pTgmZeNu2VS4cg'; |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 12 instances in 1 package
623743
31
19444
250
43