cansecurity
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -120,3 +120,2 @@ /*jslint node:true, nomen:true */ | ||
} | ||
return(false); | ||
} | ||
@@ -123,0 +122,0 @@ } |
{ | ||
"name": "cansecurity", | ||
"description": "cansecurity is your all-in-one security library for user authentication, authorization and management in node expressjs apps", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"url": "http://github.com/deitch/cansecurity", | ||
@@ -6,0 +6,0 @@ "author": "Avi Deitcher <avi@deitcher.net>", |
@@ -11,6 +11,7 @@ { | ||
["GET","/secure/parameter","deny","true === true"], | ||
["GET","/secure/parameter",{"private":"true"},"deny","false === true"], | ||
["GET","/secure/chainedParameter","deny","req.param('abc') === 'abc'"], | ||
["GET","/secure/chainedParameter",{"private":"true"},"deny","false === true"], | ||
["GET","/secure/chainedParameter","deny","req.param('abc') === 'abc'"], | ||
@@ -17,0 +18,0 @@ ["GET","/secure/login",true,"deny","req.param('abc') === 'abc'"], |
@@ -75,3 +75,3 @@ /*jslint node:true, nomen:true */ | ||
}); | ||
it('should implement rule if parameter is set', function(done){ | ||
it('should implement rule if parameter is set even if pass first rule', function(done){ | ||
r.get('/secure/parameter').query({"private":"true"}).expect(403,done); | ||
@@ -78,0 +78,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
89033