ocbesbn-bouncer
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -31,4 +31,2 @@ /** | ||
this.logger.info("Permission:roles", roles); | ||
// #TODO acl resolver needs to be checked | ||
@@ -84,3 +82,2 @@ var roleLength = roles.length; | ||
{ | ||
this.logger.info("Permission:start", {uri: url, method: method}); | ||
// #TODO Need to cache the acl json and parse it accordingly | ||
@@ -95,4 +92,2 @@ var checkPermissions = function(resolve, reject) | ||
this.logger.info("Permission:from ACL", permissions); | ||
if (!isAuthorized) | ||
@@ -107,3 +102,3 @@ { | ||
{ | ||
reject('not authorized') | ||
reject({ uri: url, method: method, userData: userData, checkList: permissions, message: 'not authorized' }) | ||
} | ||
@@ -110,0 +105,0 @@ } |
{ | ||
"name": "ocbesbn-bouncer", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "Express middleware for ACl service and validation", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
8586
203