From fd4214eac9d33098a97c96e289dc621ee46f6675 Mon Sep 17 00:00:00 2001 From: Screeny Date: Fri, 15 Nov 2013 10:41:53 +0100 Subject: [PATCH 1/3] close socket.io by default --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index b02ea5a..ed7dc1f 100644 --- a/lib/index.js +++ b/lib/index.js @@ -22,7 +22,7 @@ function authorize(options) { secret: null, store: null, success: function(data, accept){accept(null, true)}, - fail: function(data, message, critical, accept){accept(null, !critical)} + fail: function(data, message, critical, accept){accept(null, false)} }; var auth = xtend({}, defaults, options ); From 3c9f23e31e4865c6a3c45aef11636c4a745225f7 Mon Sep 17 00:00:00 2001 From: Screeny Date: Fri, 15 Nov 2013 10:47:51 +0100 Subject: [PATCH 2/3] a little simpler --- lib/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index ed7dc1f..3813b1d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -25,11 +25,11 @@ function authorize(options) { fail: function(data, message, critical, accept){accept(null, false)} }; - var auth = xtend({}, defaults, options ); + var auth = xtend(defaults, options); auth.userProperty = auth.passport._userProperty || 'user'; - if (typeof auth.cookieParser === 'undefined' || !auth.cookieParser) { + if (!auth.cookieParser) { throw new Error('cookieParser is required use connect.cookieParser or express.cookieParser'); } From df3251563180b7d00ade1be1fedc6265e8d09f14 Mon Sep 17 00:00:00 2001 From: Screeny Date: Fri, 15 Nov 2013 10:50:26 +0100 Subject: [PATCH 3/3] version push Original: 1.2.1 master-fork: 2.0.0 default to false: 2.1.0 simplification: 2.1.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ee28f24..3e7e055 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "passport.socketio", - "version": "1.2.1", + "version": "2.1.1", "description": "access passport.js authenticated user information from socket.io", "main": "lib/index.js", "keywords": [