Comparing version 0.0.26 to 0.0.27
@@ -17,2 +17,3 @@ var util = require('util') | ||
PubSubConnection.prototype.isSignatureValid = function(data, signature){ | ||
console.log(this.appSecret); | ||
var hmac = crypto.createHmac('sha1', this.appSecret); | ||
@@ -19,0 +20,0 @@ hmac.update( |
@@ -99,5 +99,2 @@ var stream = require('stream') | ||
return function(req, res){ | ||
console.log('subscription verify:', req.query); | ||
if( _this.isVerifyToken( req.query['hub.verify_token'])){ | ||
@@ -123,7 +120,6 @@ res.send( req.query['hub.challenge']); | ||
console.log(req.get('X-Hub-Signature')); | ||
console.log(conn.isSignatureValid( req.text, req.get('X-Hub-Signature'))); | ||
console.log(req.get('X-Hub-Signature'), this.clientSecret); | ||
console.log(conn.isSignatureValid( req.text, signature)); | ||
console.log(req.body); | ||
if( conn.isSignatureValid( req.text, signature)){ | ||
@@ -130,0 +126,0 @@ _this.write(req.body); |
{ | ||
"name": "socializr", | ||
"version": "0.0.26", | ||
"version": "0.0.27", | ||
"description": "Read data streams from several social networks.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
33392